+ Reply to Thread
Results 1 to 4 of 4

Macro to check checkbox based on cell value

  1. #1
    Registered User
    Join Date
    06-15-2012
    Location
    Pennsylvania, USA
    MS-Off Ver
    Excel 2010
    Posts
    46

    Macro to check checkbox based on cell value

    How can I make a checkbox automatically be in a checked position if cell "J4" is greater than 100? I am also tring to use an activeX checkbox if that makes a difference.
    Thanks in advance for the help

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Macro to check checkbox based on cell value

    Try this formula:
    =IF(J4>100,CHAR(254),"")
    Format the cell with the Symbol font

    Therefore if J4>100 insert a marked checkbox else do not insert anything

    If this answers the problem, click on the star below and change the title to [SOLVED]
    Last edited by K m; 06-27-2012 at 05:13 PM.
    Click on star (*) below if this helps

  3. #3
    Valued Forum Contributor
    Join Date
    05-08-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2003, 2010
    Posts
    811

    Re: Macro to check checkbox based on cell value

    Instead on the Symbol font, the correct font is Wingdings

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Macro to check checkbox based on cell value

    Hello
    K m's formula inserts a symbol but if you want to check/uncheck an ActiveX check box then try the following code in the Worksheet Change event:

    Please Login or Register  to view this content.
    Here the Check Box name is 'CheckBox1'.

    Hope this helps.
    DBY

+ 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