Referencing Top / Bottom of Document

L

LA Lawyer

In Word 2007 VBA, I want to move to either the very top or very bottom of
the current document.

How is that done?
 
G

Greg Maxey

In Word 2007 VBA, I want to move to either the very top or very bottom of
the current document.

How is that done?

There are a number of ways to do that. Here is one example:

Sub ScratchMacroI()
ActiveDocument.Bookmarks("\EndOfDoc").Select
End Sub

Sub ScratchMacroII()
ActiveDocument.Bookmarks("\StartOfDoc").Select
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top