+ Reply to Thread
Results 1 to 5 of 5

automatically check a checkbox depending on source

  1. #1
    Registered User
    Join Date
    05-18-2009
    Location
    CA
    MS-Off Ver
    Excel 97,2003, & 2007
    Posts
    6

    automatically check a checkbox depending on source

    Hi everyone I'm new to the forum.

    I've searched through the forum and I haven't found the answer, hopefully you guys can help me if not direct me to the thread

    It might be very simple, but all I need is if I have data on A1, and i have 3 check boxes labeled: NEW, EXISTING, and ARCHIVED. I want it to automatically check the corresponding boxes. So if "NEW" is typed under A1, it'll check "NEW" box. "EXISTING" will check "EXISTING" check box and so on.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: automatically check a checkbox depending on source

    Hello bvchrisb,

    Welcome to the Forum!

    The macro shown here will set only one check box at a time based on the input in cell "A1". If there is no match then all the check boxes are cleared. This type of mutual exclusion can be achieved more easily using Option Buttons as this is part of their design. The macro has already been added to the attached workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-18-2009
    Location
    CA
    MS-Off Ver
    Excel 97,2003, & 2007
    Posts
    6

    Re: automatically check a checkbox depending on source

    thanks Leith that worked great!

    the reason i'm using a checkbox is i'm duplicating a form that has check boxes. It's a PDF format and I'm making an excel template so all fields can be filled out automatically including checkboxes.

    The other problem I'm running into is making the checkbox bigger, I've seen another post by someone using bullets. He put an image of a bigger bullet on top of the actual bullet and was able to put info on a cell and have it checked the appropriate bullets. Do you know how to make it do that w/ the checkboxes? (I can't seem to find that post )

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: automatically check a checkbox depending on source

    Hello bvchrisb,

    The Forms controls can not be resized. You would need to use ActiveX (Control Toolbox) controls. However, this will also change the macro and how it is called.

    Another approach might be to use a font, like Marlett, to produce a check box. This approach is good if you just need a check box that doesn't need to handle events, just to be checked or cleared.

  5. #5
    Registered User
    Join Date
    05-18-2009
    Location
    CA
    MS-Off Ver
    Excel 97,2003, & 2007
    Posts
    6

    Re: automatically check a checkbox depending on source

    thanks again. you opened the door. I looked at the Marlett and wingdings 2 and nothing would match. So I looked around and found a font "FontCreator" and made my own. Works perfect.

    Thanks again.

+ 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