#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
SendKeys "^{end}"
works fine, no ? |
#3
|
|||
|
|||
Sorry, it was my mistake. The first code is do the job.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copy a selected range of a document to a new document with preserving formatting,header and footer | RobertDany | Word VBA | 10 | 08-10-2021 04:04 AM |
Code on a button to attach a document to my Word Auto fill document is not working on a Mac | reynoldsrjr | Word | 0 | 03-30-2020 04:00 AM |
USB disconnected while document was live; saved document now corrupt. How do I retrieve document? | MaxB | Word | 2 | 07-01-2019 04:42 PM |
Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
Adding a link into a word document that when pressed, takes user to a page within the same document | yan89 | Word | 1 | 04-29-2016 01:54 PM |