Disable and enable a custom toolbar button

smiler44

Registered User.
Local time
Today, 21:35
Joined
Jul 15, 2008
Messages
671
I have created a custom toolbar and custom buttons but can not work out how to disable them. I want some buttons to be disabled until other buttons have been pressed. I have pasted my own bit map pictures onto the custom buttons on the custom tool bar.
The method I used to create the tool bar was
View, Toolbars, Customize, New. Gave it s name of Test
Commands, Macros, Custom Button which is a smiley face. I then pasted a bit map picture onto the button to replace the smiley face. One of the buttons has a name of Restore Grid Lines. How do I disable it? I'm hoping if you can teach me how to disable it I will be able to work out how to enable it
I have spent time searching for an answer but noting I have found works
smiler44
 
could be
[code}
CommandBars("nameofcustomtoolbar").Controls("nameofcustombutton").Enabled = False
[/code]

smiler44
 

Users who are viewing this thread

Back
Top Bottom