+ Reply to Thread
Results 1 to 4 of 4

Run Macro(s) based on checkbox selection(s)

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Kingdom of Frost
    MS-Off Ver
    2007
    Posts
    6

    Run Macro(s) based on checkbox selection(s)

    Hello!

    Quick question for a problem that should (at least I hope so) not be tricky for the real gurus here (tried searching but came up with a bit different solutions to which I am seeking).

    I have a spreadsheet that has some 8 macros. I usually run those 8 macros separately. What I would like to do is create 8 checkboxes for each macro and then be able to run all the selected macros (1 to 8 at the same time).

    For Example if I have Macro1, Macro3 and Macro7 checked in the checkbox, the new Macro would run those 3 macros. You get the idea. Any tips on how to create this Macro? Recording doesn't even record checkbox checkings..

    Also, should I use activex or form checkboxes?


    Sorry if this is a starter question, but I have only recently started doing things with VBA.

    Many thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Run Macro(s) based on checkbox selection(s)

    Active X is better.. code would be something like :-

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Kingdom of Frost
    MS-Off Ver
    2007
    Posts
    6

    Re: Run Macro(s) based on checkbox selection(s)

    Quote Originally Posted by AndyLitch View Post
    Active X is better.. code would be something like :-

    Please Login or Register  to view this content.
    Thanks Andy.

    I get the Run-time error '424':

    Object Required from the First line of the actual macro.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Run Macro(s) based on checkbox selection(s)

    You'll need the active X checkboxes on the sheet as well as the command button...leave the checkboxes with their default names

+ 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