Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Why can't I get this? I create a checkbox from the Forms toolbar. I want to
set up a macro that will change specified worksheet cell values when the checkbox is clicked. Really, I want to test the checkbox value and react accordingly. So I should be able to set up a click event macro. Doesn't sound too hard--but I cannot get the darned thing to work. I tried the code below from Scott's reply to the thread 8/16/2006 "***Important*** Question about check boxes". Where do I paste the code in the VB window? I've tried within "sheet 1" and got an error "the macro cannot be found". So I tried adding a module and putting the code there, but got a runtime error "object required". Private Sub CheckBox1_Click() If CheckBox1.Value = True Then CheckBox2.Enabled = False CheckBox3.Enabled = True CheckBox4.Enabled = True Else CheckBox2.Enabled = True CheckBox3.Enabled = False CheckBox4.Enabled = False endif end sub Appreciate any assistance. Carolyn |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Option Button on Forms Toolbar | Excel Discussion (Misc queries) | |||
Macro to simply bring up the Find dialogue box?? | Excel Discussion (Misc queries) | |||
Undoing LINKS in Excel 2000 | New Users to Excel | |||
Stubborn toolbars in Excel | Excel Discussion (Misc queries) | |||
Group buttons from the forms toolbar | Excel Discussion (Misc queries) |