Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checkbox Question
I would like to have a "Yes" checkbox say in cell (or by) C1 and a "No"
checkbox in C2. If Yes checkbox clicked turns cell yellow and adds checkmark. If No checked turns off yes and turns white and turn No Yellow. Hope this makes since. |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Checkbox Question
Use the tool box to add the checkboxes where you want then paste this in VBA
Private Sub CheckBox1_Click() Cells(1, 1) = "YES" Cells(1, 1).Interior.ColorIndex = 6 CheckBox2.Value = False End Sub Private Sub CheckBox2_Click() Cells(1, 1) = "NO" Cells(1, 1).Interior.ColorIndex = 2 CheckBox1.Value = False End Sub -- -- -John Please rate when your question is answered to help us and others know what is helpful. "MCrum" wrote in message ... I would like to have a "Yes" checkbox say in cell (or by) C1 and a "No" checkbox in C2. If Yes checkbox clicked turns cell yellow and adds checkmark. If No checked turns off yes and turns white and turn No Yellow. Hope this makes since. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cannot select checkbox to delete it from a spreadsheet | Excel Discussion (Misc queries) | |||
Page printing and checkbox protection | Excel Discussion (Misc queries) | |||
How do I find and replace a question mark in Excel? | Excel Discussion (Misc queries) | |||
copy many CHECKBOX | Excel Discussion (Misc queries) | |||
Hints And Tips For New Posters In The Excel Newsgroups | Excel Worksheet Functions |