Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do you disable a button?

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/

  #2   Report Post  
Posted to microsoft.public.excel.programming
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/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable X button on excel pano Excel Worksheet Functions 6 March 28th 07 02:15 AM
How do you disable the Collate button? Trixie Excel Discussion (Misc queries) 0 August 25th 06 04:00 PM
Enable/Disable Button surplusbc[_6_] Excel Programming 1 February 1st 04 09:53 PM
Disable the right mouse button?? Richard m Excel Programming 1 December 7th 03 03:48 AM
Disable Button Pete[_12_] Excel Programming 3 October 8th 03 01:30 PM


All times are GMT +1. The time now is 09:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"