+ Reply to Thread
Results 1 to 15 of 15

Check box form - setup of various options

  1. #1
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Check box form - setup of various options

    Been trying to work out what I need and I think its a check box window form, but feel free to correct me.
    Looking for help in setting up a form with three check box options on the left - only one of which can be selected at a time.
    Then two options on the right - again only one of the two can be selected.
    Once the options on both sides have been selected, a button becomes live which should link to and run one of six macros.

    I have setup the Form with the check boxes and button, but am struggling to move to the next stage.

    Thanks for any help

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Check box form - setup of various options

    For the functionality you describe, you'll need option boxes in two fames, three in the first, two in the 2nd.

  3. #3
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Check box form - setup of various options

    Hi
    This an example might helps
    Attached Files Attached Files

  4. #4
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Check box form - setup of various options

    Cleaner demo - there is no need for the clutter of placing option buttons in frames to segregate them.
    Use the 'group' function in the 'optionbox' properties window.
    torachan.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Thanks for your help so far.
    Mohadin - This works and obviously just need to replace the message box with a run macro, but it allows me to select multiple options on both sets 1-3 and 4-5. Is there a way to deselect 1, 2 or 3 if I click one of the other options - and the same for 4 and 5 (selected 4, but changed mind so select 5 and 4 deselects itself?

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Thanks Torachin, but couldn't work out how each option would run the relevant macro?
    The selection works well, as deselects, so can't select two options.
    Last edited by Chanty; 02-01-2021 at 09:59 AM.

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Check box form - setup of various options

    New file - remove message boxes and remove apostrophe in front of macro calls
    torachan
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Thanks torachan

    Can still select more than one option, but also can't get macros to run using Call ?

    Any ideas what I'm missing?
    Attached Files Attached Files

  9. #9
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Check box form - setup of various options

    without actual file difficult to say - where do your macros reside ?

  10. #10
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Will try and upload a file in a bit, but macros are all kept in same file.
    As I say it didn't seem to like the Call instruction, but I guess that could also be the actual macro name - will have a play around.
    Any thoughts on being able to select multiple options?
    Thanks for your time, much appreciated.

  11. #11
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Think I'm getting there, but getting 'Else without If' error on the following:

    Please Login or Register  to view this content.

  12. #12
    Valued Forum Contributor
    Join Date
    06-27-2010
    Location
    sYRIA
    MS-Off Ver
    Excel 2013
    Posts
    669

    Re: Check box form - setup of various options

    In this case you will need only one end if
    Please Login or Register  to view this content.

  13. #13
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Check box form - setup of various options

    @Chanty, I have to ask the question, Why?
    If you are merely wanting shortcuts to your macros, why not just assign each to a command button.
    You can not run macros simultaneously so no much point in been able to multi-select.
    I have applied the 'KISS' principle to the attached file.
    torachan.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    Thanks torachan

    Much simpler option and solves the issues that I was creating!

    Thanks for all your time - much appreciated.

  15. #15
    Registered User
    Join Date
    01-11-2021
    Location
    Brighton
    MS-Off Ver
    365
    Posts
    85

    Re: Check box form - setup of various options

    I did want to get the other option to work, as there was a third group that I wanted to add at a later date, but have shelved that for now.

    Thanks again to all.

+ 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. Replies: 13
    Last Post: 06-08-2018, 06:50 AM
  2. [SOLVED] Macro to setup printing options for whole workbook
    By jsantos in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-29-2012, 06:06 PM
  3. Trying to setup a quotation form
    By eliaskho in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2012, 08:53 AM
  4. Help Making New User Setup Form:
    By HOMERSlMPSON in forum Excel General
    Replies: 2
    Last Post: 02-08-2011, 11:47 AM
  5. [SOLVED] How do setup an auto fill form
    By Nick in forum Excel General
    Replies: 0
    Last Post: 05-13-2006, 05:25 PM
  6. Accessing Page Setup Options from VBA
    By CFD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2006, 11:10 AM
  7. page setup with Excel4 & Waiting Form
    By Liedson31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2005, 02:05 PM

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