Getting to the Bottom of the Current Page

L

LA Lawyer

I want VBA (Word 2007) to go to the bottom of the current and insert a hard
page and then insert a table of authorities.

The problem is that I can't figure out how to navigate to the bottom of the
page. The rest works.
 
D

Doug Robbins - Word MVP

Use

ActiveDocument.Bookmarks("\page").Range.Select
Selection.Collapse wdCollapseEnd

Rather than using the selection however, it will probably be better to use

Dim prange and Range
Set prange = ActiveDocument.Bookmarks("\page").Range
prange.collapse wdCollapseEnd

and then operate on prange.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 

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