Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to save and return to position in document?
Using Word 2000, I need to run a macro that selects parts of a
document, does some reformatting, and returns to the original position. I just can't think of how to save and return to the original position in Word. If anyone can help, I would appreciate it a lot. Thanks. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to save and return to position in document?
Have your macro set a bookmark at the starting position and return to it at
the end? -- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit. "charles" wrote in message ... Using Word 2000, I need to run a macro that selects parts of a document, does some reformatting, and returns to the original position. I just can't think of how to save and return to the original position in Word. If anyone can help, I would appreciate it a lot. Thanks. |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to save and return to position in document?
Charles,
Something like this: Sub Scratchmacro() 'Create a bookmark at current selection point: ActiveDocument.Bookmarks.Add Name:="tmpMark", Range:=Selection.Range MsgBox "Do your thing here" 'When finished, go to the bookmark Selection.GoTo what:=wdGoToBookmark, Name:="tmpMark" 'Kill the bookmark ActiveDocument.Bookmarks("tmpMark").Delete End Sub |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
How to save and return to position in document?
On Sun, 26 Feb 2006 11:16:27 -0500, charles
wrote: Using Word 2000, I need to run a macro that selects parts of a document, does some reformatting, and returns to the original position. I just can't think of how to save and return to the original position in Word. If anyone can help, I would appreciate it a lot. Thanks. Thank you Susan and Greg. Using bookmarks works fine. (I never used them before and thought I'd have to do some VB thing like in Excel.) Great. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
document template - how to get autotext field update when saved | Microsoft Word Help | |||
Hebrew Suggestions | Microsoft Word Help | |||
How can I unlock a document I saved in Word document? I cant edit. | Mailmerge | |||
Return Address along Left Side of Envelope | Microsoft Word Help | |||
Return Address Won't Save | New Users |