checkbox

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

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


Private Sub CheckBox1_Click()


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


End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top