Dragon Drop - A Visual Basic Software Consultancy

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.