Jump to content
Macro Express Forums

Multiple Choice Macros


nuffcedd
 Share

Recommended Posts

:huh: I'm trying to build a multiple choice macro where the choices (A through ....) run other macros. My problem is I cannot get my macro to run more than one of the multiple choice options. I can celect multiple choices but macro only works if I have just one selected. I did change from radio button to check box) I am using the example "Menu of Sample Macros" as my template.
Link to comment
Share on other sites

Thanks Cory. Why is there an option on the Muliple Choice Menu to select checkbox menu, where you can then make more than one choice.

 

In the sample macro (copied below) it even implies that you can run more then one.

 

Thanks again. EA

 

 

// ===========================================================================

// Sample Macro - Menu of Sample Macros

// ----------------------------------------------------------------------------------------------------------------------------------

//

// What it does:

// This macro will display a menu of the sample macros and allow you to select which one(s)

// to run.

//

// To incorporate a similar feature in your macros, use the Scripting Editor to study how this

// macro works and change it as needed.

//

// Variables used:

// T98 - Multiple Choice Menu selection

// T99 - DONE flag

// Variables used by the called macros

//

// Written by:

// Insight Software Solutions, Inc.

Link to comment
Share on other sites

Because multiple choice is often used for other things besides running macros. For instance I have a fax monitor and alert macro and the operator can choose multiple email recipients to notify of a new inbound fax. Sometimes you want Fred and sometimes you want Fred and Susan.

 

To me their plural does not imply simultaneous execution. If you want to try multiple macros you can. Just not at the same time. Hence the parenthesized plural.

Link to comment
Share on other sites

The thing that may have thrown us off is your statement '...run other macros'. Are you running these macros using Macro Run commands to run these macros? If so, you should be fine.

 

From your description it sounds like you may not be checking the result of the Multiple Choice Menu command correctly. If you select only one item in the Multiple Choice Menu, your variable will contain something like A, or 'Selection One' or 'Selection &One'. You can successfully use If Variable %T1% = "A" (or "Selection One" or "Selection &One").

 

However, if you select more than one item in the Multiple Choice Menu then your variable will contain something like AC, or 'Selection OneSelection Two' or 'Selection &OneSelection &Two'. In this case you need to use the If Variable Contains command. Something like this:

Multiple Choice Menu: Testing

If Variable %T1% contains "Selection &One"
 Macro Run: *** Macro One ***
End If
If Variable %T1% contains "Selection &Two"
 Macro Run: *** Macro Two ***
End If
If Variable %T1% contains "Selection Th&ree"
 Macro Run: *** Macro Three ***
End If

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...