killer6993 Posted July 28, 2005 Report Share Posted July 28, 2005 Alright I'm working on a macro that will always need to run a different amount of times. I'd either like a popup box or menu that gives me a choice to select or enter how many times I would like the entire macro to run. I've been having troubles setting this up. I want to be able to do this without having to set up 50 other macros that each have the processes run an additional time. How do I set it up to have a menu or box I can select how many time. Any input is useful. Quote Link to comment Share on other sites More sharing options...
cyberchief Posted July 28, 2005 Report Share Posted July 28, 2005 Welcome Killer, It is rather easy. At the beginning of your macro, input a "Set Variable Integer" with "prompt for value". Set that integer to whatever number... lets say %N1%. Then, set the entire scope of your macro in a repeat loop. Set that repeat to %N1% times. It will then repeat as many times as you input into that first prompt box. See below example. Variable Set Integer %N1% from Prompt Repeat with Variable using %N1% // Run Macro here // Run Macro here // Run Macro here // Run Macro here Repeat End <IVAR2:01:02:FHow many times would you like to run this macro?FTCenter:Center><REP3:05:000001:000001:0001:0:01:><REM2:Run Macro here><REM2:Run Macro here><REM2:Run Macro here><REM2:Run Macro here><ENDREP> Quote Link to comment Share on other sites More sharing options...
Cory Posted July 28, 2005 Report Share Posted July 28, 2005 I would suggest using "Start Repeat With Prompt" repeat option. This will prompt the user for the number of times to repeat at the beginning of the loop. Quote Link to comment Share on other sites More sharing options...
cyberchief Posted July 28, 2005 Report Share Posted July 28, 2005 I would suggest using "Start Repeat With Prompt" repeat option. This will prompt the user for the number of times to repeat at the beginning of the loop. well done... never even seen that... ha. Guess I got a lot to learn. Quote Link to comment Share on other sites More sharing options...
Cory Posted July 28, 2005 Report Share Posted July 28, 2005 Me too. I'm constantly discovering something new that make me go “Doh!” and then I want to go back and fix all the macros I had written while ignorant more because I’m embarrassed than lack of functionality. That’s what these forms are great for. We all help each other out to learn new things. Quote Link to comment Share on other sites More sharing options...
cyberchief Posted July 28, 2005 Report Share Posted July 28, 2005 I know what you mean... I reprogrammed about 15 macros I have to incorporate new and better/efficient ideas. They are always getting better and better. Quote Link to comment Share on other sites More sharing options...
killer6993 Posted July 29, 2005 Author Report Share Posted July 29, 2005 Used the Start with Repeat Prompt and that worked like a charm. I have no idea why I didnt see or think of that before. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.