koden Posted November 12, 2021 Report Share Posted November 12, 2021 I have created a simple macro that copies from excell and paste into webside. I would like to have the macro to repeat a amount of times. is it possible in some way to start the macro with a prompt where i type tat it f.ex. should run 20 times.. So when finished then start from beginning again. And do that 20 times or more. Quote Link to comment Share on other sites More sharing options...
rberq Posted November 12, 2021 Report Share Posted November 12, 2021 Use two macros. The first macro (example below) will prompt for the number of times to run the second macro, then run it. // Variable Set Integer %count%: Prompt ["set integer" option to prompt for number of repetitions] Repeat Start (Repeat %count% times) [run the second macro multiple times] Macro Run: macro_2 End Repeat // Edit: I see you posted this in the Macro Express 3 forum. You will need to use one of the pre-defined integer variable (N1, N2, N3....) instead of %count% in my example. Quote Link to comment Share on other sites More sharing options...
koden Posted November 13, 2021 Author Report Share Posted November 13, 2021 Thanks.. yes off course. Now I remeber using this 10 years ago Is there a way to do check on what is typed in the N1 Ex. has to be numbers and at least 6 numbers and the last 2 is always 2 and 1 for this year is there a quick short key to stop a running macro Quote Link to comment Share on other sites More sharing options...
rberq Posted November 13, 2021 Report Share Posted November 13, 2021 5 hours ago, koden said: is there a quick short key to stop a running macro In Options | Preferences you can set a hot key that aborts running macros. You could prompt for a text variable rather than an integer. Then use Variable Modify String to extract and examine individual digits. After verifying, there is an option of Variable Modify String to convert string to integer. Quote Link to comment Share on other sites More sharing options...
koden Posted November 14, 2021 Author Report Share Posted November 14, 2021 yes thanks... working... 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.