Hi
I don't think you can enable/disable a button created from the FORMS toolbar. For that you would need to create your button using the control toolbox button.
Though I stand to be corrected on this!
If using a forms button you can hide it altogether (but there may be other properties you could utilise) as follows
Worksheets(1).Shapes("button 1").Visible = False
For a command button you can set the enabled property to false:-
However, I don't like this approach because the button is not dimmed and the cursor still changes to a "hand" when the user mouses over the button; i.e. no visual clues that the button is disabled. As you point out, the Control Toolbox (ActiveX) button is the way to go here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.