G
Gina
Hi all.
What I am trying to do is to disable the appearing of point ' customize'
when right-clicking on the only commandbar
all is hidden but still on right-clicking the 'invoice' command bar there is
the option of customization ...
here's my code:
Dim i As Integer
i = 1
Application.WindowState = wdWindowStateNormal
While i < ActiveDocument.CommandBars.Count - 1
If ActiveDocument.CommandBars(i).Name <> "Invoice" Then
ActiveDocument.CommandBars(i).Enabled = False
Else
ActiveDocument.CommandBars(i).Enabled = True
End If
Debug.Print i
i = i + 1
Wend
CommandBars("Invoice").Enabled = True
CommandBars.AdaptiveMenus = False
Any help and idea would be highly appreciated !!
Thx, Gina
What I am trying to do is to disable the appearing of point ' customize'
when right-clicking on the only commandbar
all is hidden but still on right-clicking the 'invoice' command bar there is
the option of customization ...
here's my code:
Dim i As Integer
i = 1
Application.WindowState = wdWindowStateNormal
While i < ActiveDocument.CommandBars.Count - 1
If ActiveDocument.CommandBars(i).Name <> "Invoice" Then
ActiveDocument.CommandBars(i).Enabled = False
Else
ActiveDocument.CommandBars(i).Enabled = True
End If
Debug.Print i
i = i + 1
Wend
CommandBars("Invoice").Enabled = True
CommandBars.AdaptiveMenus = False
Any help and idea would be highly appreciated !!
Thx, Gina