Page Tab CommandBar once disabled, isn't getting enabled

A

arisco97

Version 2002 / 2003

Dim vsoCommandBars As CommandBars
Dim vsoCommandBar As CommandBar

Set vsoCommandBars = Application.CommandBars
Set vsoCommandBar = vsoCommandBars.Item("Page Tab")

'I was able to set the following to False, but now it refuses to set it back
to True

'Delete Page
vsoCommandBar.Controls.Item(2).Enabled = True //Is ignored, no error thrown

'Rename Page
vsoCommandBar.Controls.Item(3).Enabled = True


This I believe has either updated registry or some policy file, as now new
instances of Visio has Delete Page and Rename Page commands in the Page Tab
Menu as disabled. Do I have to reinstall Visio?

How do I enable them back as Global setting?
How do I disable these commands selectively for a Page:
I thought the following would work, but it applies it globally:

Set vsoCommandBars =
ActiveDocument.Pages("XXX"History").Application.CommandBars
vsoCommandBar.Controls.Item(2).Enabled = False
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top