#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checkbox

what would the code be to make a checkbox when it is
checked it would put the number 2 into a cell
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default checkbox

try this


Private Sub CheckBox1_Click()


If CheckBox1.Value = True Then
Range("A1") = "2"
Else
Range("A1") = ""
End If


End Sub



"mark" wrote in message
...
what would the code be to make a checkbox when it is
checked it would put the number 2 into a cell



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
Checkbox dcb1 Setting up and Configuration of Excel 3 September 29th 08 02:55 AM
Checkbox AlliSun Excel Discussion (Misc queries) 2 September 17th 08 09:48 PM
How to have Checkbox A uncheck with checked Checkbox B Texas Aggie Excel Discussion (Misc queries) 3 July 20th 07 10:58 PM
checkbox helpless101 Excel Worksheet Functions 0 April 10th 06 11:52 AM
checkbox? rwijnia Excel Worksheet Functions 4 November 3rd 05 07:40 PM


All times are GMT +1. The time now is 12:34 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"