+ Reply to Thread
Results 1 to 3 of 3

Macro code to check if all checkboxes on userform are false

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Macro code to check if all checkboxes on userform are false

    Hello

    I have a userform with multiple checkboxes (more than 12). If all the checkboxes are unchecked (value = false) then the user cannot proceed, at least one of the checkboxes must be checked. I'm not sure how to write a macro to evaluate this condition.

    Thanks

  2. #2
    Forum Contributor noboffinme's Avatar
    Join Date
    08-29-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003/7/10/13/16/19
    Posts
    1,071

    Re: Macro code to check if all checkboxes on userform are false

    Hi WilliamWu,

    If you can use Radio Buttons instead of checkboxes, you can put the Radio Buttons inside a Frame & it will automatically only allow selection of one Button.

    Hth.
    Remember you are unique, like everyone else

  3. #3
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Macro code to check if all checkboxes on userform are false

    Maybe something like this:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Please help! macro code needed to assign to command button to check a column of checkboxes
    By cnbv in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2013, 04:47 AM
  2. Print Sheets based on checkboxes in UserForm, Checkboxes also control another macro
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 34
    Last Post: 03-05-2013, 11:12 AM
  3. vba code/macro to check checkboxes
    By Jzon758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2012, 02:55 PM
  4. [SOLVED] VBA code - unable to check checkboxes (userform) in Excel 2010
    By mat418pic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2012, 02:59 PM
  5. [SOLVED] Macro to make all checkboxes false and clear all comboxes
    By ynissel in forum Excel General
    Replies: 5
    Last Post: 07-29-2005, 08:05 PM

Tags for this Thread

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