ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   checkbox (https://www.excelbanter.com/excel-programming/273349-checkbox.html)

mark

checkbox
 
what would the code be to make a checkbox when it is
checked it would put the number 2 into a cell

Mike Tomasura

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





All times are GMT +1. The time now is 06:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com