View Single Post
 
Old 03-27-2023, 12:21 AM
Dimsok Dimsok is offline Windows XP Office 2007
Advanced Beginner
 
Join Date: Sep 2014
Location: exUSSR
Posts: 50
Dimsok is on a distinguished road
Default Go to end of document

I need to go to the end of document after open document. I don't know why, but build in macro "GoToLastPg" doesn't work for me. I use such code:

Code:
Sub AutoOpen()
Selection.EndKey Unit:=wdStory
End Sub
But not puts cursor. Any other method except just sending the key? And put the cursor at the end.
Reply With Quote