View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default how do you disable a button?

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)

"jest " wrote in message
...
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?


---
Message posted from http://www.ExcelForum.com/