Checkbox Help

robfo0

Active Member
Joined
Feb 19, 2002
Messages
281
I found code similar to this in one of NateO's posts, but its not working for me. Am I doing something wrong? I'm trying to get a cell value to change when a check box (not on userform) is checked. I named the check box "Check_box", but nothing happens. Heres the code:

Private Sub Worksheet_Change(ByVal Target As Range)

If Check_box.Value = xlOn Then
Range("AT1").Value = "testtrue"

End If


Thanks :)
End Sub
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Rob,

It depends on whether you're using an xldialog or a worksheet control. And if you're using a worksheet control, whether it's a form control or an active x control. If you have a checkbox in your worksheet, you may want to reference the following:

http://www.j-walk.com/ss/excel/tips/tip84.htm

Hope this helps.

Cheers,<font size=+2><font color="red"> Nate<font color="blue">O</font></font></font>
This message was edited by NateO on 2002-03-14 18:27
 
Upvote 0

Forum statistics

Threads
1,213,532
Messages
6,114,177
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top