Shortcut Menu

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
 
W

Wolfgang Kais

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
 

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