Shortcut Menu

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a shortcut menu named menuFilter (right-click menu). It is assigned
to the form property.

When my application starts, all command-bars are disabled with the standard:

For dintCount = 1 to CommandBars.Count
CommandBars(dintCount).Enabled = False
Next dintCount

Now, what is the statement to turn my custom menuFilter back on ?

Thank you.
BrerGoose
 
Hello "BrerGoose".

BrerGoose said:
I have a shortcut menu named menuFilter (right-click menu).
It is assigned to the form property.

When my application starts, all command-bars are disabled with
the standard:

For dintCount = 1 to CommandBars.Count
CommandBars(dintCount).Enabled = False
Next dintCount

Now, what is the statement to turn my custom menuFilter back on ?

How about not turning the CommandBar off?
For dintCount = 1 to CommandBars.Count
If CommandBars(dintCount) <> "menuFilter" Then
CommandBars(dintCount).Enabled = False
End If
Next dintCount

Or simply after turning all off by "the standard":
CommandBars("menuFilter").Enabled = True
 
Back
Top