Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

Enableling a shape

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dr. Schwartz - 19 Mar 2008 13:30 GMT
I have a command button that I want to enable and disable using code. I have
tried this:

ActiveSheet.Shapes("PrintJour").Enabled = True

Without any luck. Can anyone guide me?

The Doctor
Peter T - 19 Mar 2008 13:45 GMT
Dim bEnable As Boolean
bEnable = False '  true to enable
ActiveSheet.OLEObjects("CommandButton1").Object.Enabled = bEnable

Regards,
Peter T

> I have a command button that I want to enable and disable using code. I have
> tried this:
[quoted text clipped - 4 lines]
>
> The Doctor
Dave Peterson - 19 Mar 2008 13:55 GMT
Another one:

Worksheets("sheet1").CommandButton1.Enabled = False

> I have a command button that I want to enable and disable using code. I have
> tried this:
[quoted text clipped - 4 lines]
>
> The Doctor

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.