#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot select checkbox to delete it from a spreadsheet Roundy Excel Discussion (Misc queries) 3 November 30th 05 02:38 PM
Page printing and checkbox protection balcovja Excel Discussion (Misc queries) 1 November 25th 05 02:13 PM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
copy many CHECKBOX Taha Elian Excel Discussion (Misc queries) 1 April 28th 05 06:06 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"