Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word cursor start point

Status
Not open for further replies.

sevi

IS-IT--Management
Jan 29, 2002
64
GB
I have a word document that when opened, the cursor should to be at a specific point in the document.

Does anyone know how to do this?
 
Hi,
You could create a macro that moves the cursor to that place, click on the macro when you open the document and it would relocate the cursor. OR if it's the last place you edited in a document, you can use the Shift + F5 upon opening the doc to jump to that location.
HTH,

Best,
Blue Horizon [2thumbsup]
 
Go to that point in your document and hit Insert-Bookmark and give it a name (we'll call it "starthere").

Hit Alt+F11.
Double-click ThisDocument under your document's name at left.

On the right, paste this code:

Private Sub Document_Open()

Selection.GoTo What:=wdGoToBookmark, Name:="starthere"

End Sub

Save your file. Close it.
Open it.


Anne Troy
VBA Coders, please help:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top