Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2013 - Macro to show navigation pane

Status
Not open for further replies.

pendle666

Technical User
Jan 30, 2003
295
GB
Hello

I'm seeing Word 2013 for the first time and coming back to doing some VB after a couple of years and I'm very confused. I've found the command button in the legacy controls and what I would like to do is have this button, onclick to show the navigation panel and to show the headings for the document.

The navigation pane isn't always on as it's not necessary, but I'm doing some training notes and need it to be there to allow easy movement around the document.

thanks

thank you for helping

____________
Pendle
 
A little browse around the web and I've got this to switch the pane on:

Private Sub CommandButton1_Click()

With ActiveWindow

.View.ShowHeading 2
.DocumentMap = True
End With
End Sub




however, I'd like my button on my document to show or hide it.

thank you for helping

____________
Pendle
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top