Programming the navigation bar in Word 2010

I am trying to find a way to program a new navigation bar in Word 2010 to change tabs when a user selects an image in a document. I can fix the selection change with WindowSelectionChange(ByVal Sel As Selection), but I can’t figure out how to change the “Headline Overview” tab to “Page Overview”, which is what I want.

+3
source share
2 answers

According to the MVP on this thread , it is not programmable / searchable.

0
source

Use of iAccessible is possible!

Dim As IAccessible

Set oIA = CommandBars("Navigation")

oIA.Visible = True

Then deeply recursively find the child with accName="Navigation"andaccRole=38

3 accValue=NAVBAR accRole=60

2 NAVBAR - , .

 .accDoDefaultAction CHILDID_SELF
+1

Source: https://habr.com/ru/post/1757931/


All Articles