how do you disable a button?

J

jest

how do you disable a button in excel?
i know how to disable buttons in userforms, but trying to use similar
coding like this:

ActiveSheet.Shapes("Button 1").Enabled = True

does not seem to work. can a button made from the Forms toolbar be
disabled?
 
B

Bob Phillips

Hi Jest,

Get it from the Buttons collection

ActiveSheet.Buttons("Button 1").enabled = true


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Top