Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you disable menu items 1

Status
Not open for further replies.

StuMunro

Programmer
Mar 2, 2001
29
GB
I have create my own menu bar for my Acc97 application.
During various stages I want to disable some of the menu
items from VBA.

How do you do this?
 
In a toolbar you can enable/disable buttons with this code

Dim c As Object
For Each c In CommandBars("Custom 1").Controls
Debug.Print c.Caption, c.Enabled
c.Enabled = False
Next c
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top