Dragon Drop
Dragon Drop - A Software Consultancy
Home      Our Products      Consultancy      Web Page Development      Services      Coding      Windows      External Resources     
Links      Newsletter      News And Issues      Books etc.      About Us     
CODING:   Exchange      Visual Basic      VBA      HomeSite     |     Coding Tools      Software Clinic     

Word Tips

Selecting the Current Page

To select the current page; go to Tools | GoTo then select bookmarks and then type "\page".

Of course this would be better if this were in a simple VBA routine so that this can be called from a click on a toolbar or from a menu item. So, open one of your Start-Up templates, enter the IDE and type the following into a code module:


Sub SelectCurrentPage ()

  

  On Error Resume Next 

	

  If Documents.Count > 0 Then

    ActiveDocument.Bookmarks("\page").Range.Select

  End If

	

End Sub

Updates

If there are any suggestions for updates then please drop me a mail at malcolm.smith@dragondrop.com.