Results 1 to 2 of 2

Thread: Checkbox

  1. #1

    Thread Starter
    Member dmerchen's Avatar
    Join Date
    Mar 2001
    Location
    Moving Back to Texas
    Posts
    60

    Question Checkbox

    Can I test if a checkbox on a sheet within Excel is checked, and if it is make a checkbox on another sheet be checked too?

    If chkbox1.value=checked then
    chkbox 2.value=checked
    End if

    Wouldn't this work? Checkboxes don't really depend on the sheet they are on correct. Can you just give them a name and run these type of if then statements? Thanks for any help.
    DMerchen

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    You're on the right track - only a small change needed which is below. You need to specify which sheet the 2nd checkbox is in for your code to work.


    VB Code:
    1. If chkbox1.value = True then
    2. SheetName.chkbox2.value = True
    3. End if

Posting Permissions

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



Click Here to Expand Forum to Full Width