Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable form Button object if Checkbox not checked

Status
Not open for further replies.

Zac5

Programmer
Jan 30, 2003
75
US
I have added a form Button object to a worksheet and want it disabled or dimmed until a form Checkbox object also within the worksheet is checked. Please can someone assist with the vba for this. I am guessing the vba to disable the button object would be something like - ???.worksheet("").???.enabled="false" but I haven't found the correct method.

thanks,

Zac
 


Zac,

Rather than giving you the answer directly (like giving your a fish) I'm directing you to this FAQ where you can develop a tool to DISCOVER the answer (like teaching you how to fish)

How to use the Watch Window as a Power Programming Tool faq707-4594

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 


Each Object on your sheet is a Shape.

Do a watch on Activesheet.Shapes(1)

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top