![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 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 |
|
|
|
|
|
#2 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
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, NateO [ This Message was edited by: NateO on 2002-03-14 18:27 ] |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Stockton, California
Posts: 281
|
Thanks again Nate, active toolbox works nice
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|