Z
zSplash
Using code to add rows to a table, I then I want to return to the original
spot the sub was invoked. I have inserted a bookmark "StartHere", at
beginning of code. Then, at the end of the code (after adding many rows,
which are out of the window view), I try to re-position the "StartHere"
bookmark in the window, unsuccessfully. Here's my code to reposition:
ActiveDocument.ActiveWindow.ScrollIntoView Selection.Range
ActiveDocument.GoTo what:=wdGoToBookmark, Name:="StartHere"
ActiveDocument.Bookmarks("StartHere").Delete
The Bookmark exists, but I get a run-time error 5678 "Word cannot find the
requested bookmark". The start position remains out of view (if I comment
out the "goto" code). Can someone help?
TIA
spot the sub was invoked. I have inserted a bookmark "StartHere", at
beginning of code. Then, at the end of the code (after adding many rows,
which are out of the window view), I try to re-position the "StartHere"
bookmark in the window, unsuccessfully. Here's my code to reposition:
ActiveDocument.ActiveWindow.ScrollIntoView Selection.Range
ActiveDocument.GoTo what:=wdGoToBookmark, Name:="StartHere"
ActiveDocument.Bookmarks("StartHere").Delete
The Bookmark exists, but I get a run-time error 5678 "Word cannot find the
requested bookmark". The start position remains out of view (if I comment
out the "goto" code). Can someone help?
TIA