+ Reply to Thread
Results 1 to 3 of 3

Formula or VBA in checkbox

  1. #1
    Registered User
    Join Date
    06-26-2012
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Formula or VBA in checkbox

    Hello all,

    I need to either create a function or a macro for a checkbox where it references a number in its own sheet and is checked if the same number lines up with a yes or no in another sheet. Basically I want this function or macro to reference cell C3, look in a column for this value in a separate worksheet and check if it lines up with "yes" or "no". If it's yes, then have it checked, leave unchecked if no. I hope I explained this clearly enough.

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Formula or VBA in checkbox

    Could you provide a sample worksheet that mimics what you would like done with code?

    Thanks!

  3. #3
    Registered User
    Join Date
    06-26-2012
    Location
    CA
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Formula or VBA in checkbox

    Example book.xlsm

    Here's a sample worksheet, basically If the other sheet says "yes" then check the complete box. If "no" then uncheck all boxes and then check the incomplete box.

    I tried this macro with no results.

    If Range("E3").Value = True Then
    Worksheets("Work Item Report").CheckBox1 = True And Worksheets("Work Item Report").CheckBox2 = False


    ElseIf Range("E3").Value = False Then
    Worksheets("Work Item Report").CheckBox1 = False And Worksheets("Work Item Report").CheckBox2 = True

    End If

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1