Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check Box Show Hide
Hi,
Im trying to create a spreadsheet with a check box that returns a combo box when checked, and hide combo box when unchecked. Ive created the following code for the checkbox, however an €˜Object Required error is returned. Sub CheckBox1_Click() If CheckBox1.Checked = True Then CheckBox1.Text = "Checked" Else CheckBox1.Text = "Unchecked" End If End Sub Does anyone familiar with the €˜Object required code? Also, what line of code is needed to €˜show and hide the combo box? Thanks Paul |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check Box Show Hide
Try .Value instead of .Text for the test, and .Caption when setting it.
-- HTH RP (remove nothere from the email address if mailing direct) "Paul" wrote in message ... Hi, I'm trying to create a spreadsheet with a check box that returns a combo box when checked, and hide combo box when unchecked. I've created the following code for the checkbox, however an 'Object Required' error is returned. Sub CheckBox1_Click() If CheckBox1.Checked = True Then CheckBox1.Text = "Checked" Else CheckBox1.Text = "Unchecked" End If End Sub Does anyone familiar with the 'Object' required code? Also, what line of code is needed to 'show and hide' the combo box? Thanks Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how to Hide/reappear check boxes | Excel Discussion (Misc queries) | |||
Hide & Show Rows based on Check Boxes | Excel Discussion (Misc queries) | |||
How do I hide the Check Box number? | Excel Worksheet Functions | |||
Check boxes to show/hide Tabs | Excel Worksheet Functions | |||
Want to hide check boxes | Excel Programming |