Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Checkbox Help

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Stockton, California
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #2
    Legend NateO's Avatar
    Join Date
    Feb 2002
    Location
    Minneapolis, Mn, USA
    Posts
    9,700
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    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. #3
    Board Regular
    Join Date
    Feb 2002
    Location
    Stockton, California
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks again Nate, active toolbox works nice thanks for the link too

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •