Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Thu, 31 Mar 2005 07:14:08 GMT,    group: microsoft.public.word.word6-7macros        back       


Help to toggle a Word 2000 macro   
I have recorded a macro in Word 2000 to set a bookmark at the cursor
position. 
I have assigned a key to this macro.
I have recorded another macro in Word to bring the cursor to the
bookmark position and delete the bookmark.
I have assigned another key to this macro.

Is there some way to use one single key to toggle between these two
macros?

Thank you.

T.
========================
Tony Roder, speaking his mind....
date: Thu, 31 Mar 2005 07:14:08 GMT   author:   unknown

Re: Help to toggle a Word 2000 macro   
Hi Tony,

Your macro can check if the bookmark exists, and handle the two cases:

If ActiveDocument.Bookmarks.Exists("Test") = True Then
    ' jump to bookmark, delete bookmark
    ' (or Call the macro that does this already)
Else
    ' create bookmark "Test" at cursor location
    ' (or Call the macro that does this already)
Endif

Regards,
Klaus



 wrote:
> I have recorded a macro in Word 2000 to set a bookmark at the cursor
> position. 
> I have assigned a key to this macro.
> I have recorded another macro in Word to bring the cursor to the
> bookmark position and delete the bookmark.
> I have assigned another key to this macro.
> 
> Is there some way to use one single key to toggle between these two
> macros?
> 
> Thank you.
> 
> T.
> ========================
> Tony Roder, speaking his mind....
date: Mon, 4 Apr 2005 22:18:52 +0200   author:   Klaus Linke

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us