Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to add a check box so that when checked, it will highlight certain
cells. I've been trying to write a Macros for it and can't figure it out... any help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If using a checkbox from the Control Toolbox Toolbar, then place it on the
sheet and double click on it. This should take you to the click event Private Sub Checkbox1_Click() end Sub put code in here Private Sub Checkbox1_Click() if Checkbox1.Value = True then Range("A5:F20").Interior.ColorIndex = 3 else Range("A5:F20").Interior.ColorIndex = xlNone End if end Sub return to excel and in the control toolbox toolbar, click the top right control so it does not appear depressed. This takes you out of design mode and allow the events to fire when you click the control. Adjust to suit. -- Regards, Tom Ogilvy "BrianXJ" wrote in message ... I'm trying to add a check box so that when checked, it will highlight certain cells. I've been trying to write a Macros for it and can't figure it out... any help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use the Stop If True Condition for highlight cells | Excel Worksheet Functions | |||
Can you highlight locked cells in excell, so you can check i | Excel Discussion (Misc queries) | |||
Highlight more than one entire row when cells = TRUE | Excel Discussion (Misc queries) | |||
Can I highlight misspelt words in cells when I use the spell check | Excel Discussion (Misc queries) | |||
How do I make a checked check box = 1 instead of True? | Excel Worksheet Functions |