Jump to content
Macro Express Forums

Display InputBox, Use Variable in Loop

Recommended Posts

I have read through the help for the dialog boxes available. I did not see anything on a inputbox where the input (variable) can then be used in a loop.


Does anyone know whats the best way to accomplish this? Basically i am running a self print macro that advances the webpage via a arrow key and presses a print icon on the screen to print, the number of pages to print (loop) will be determined by the input i choose that day.


so inputbox "How many pages do you want to print today? ___ (that number would go to the loop function)



thanks if you can point me to past topics or send a sample macro.

Link to comment
Share on other sites

You may enter a variable in any field in the command dialogs. To choose how many times to loop, get the number in a variable and enter that variable in the 'Number of times to repeat' field in the Repeat Start command dialog.



thanks , but are you saying that everytime i want to change the number of pages i want to print (loops to perform) i need to open the macro up and adjust the variables number?


each day the number of pages i want to print will change, so having an input box ask how many pages then using that number as the #loops to perform would be easiest. please let me know if I missed the command that always me to accomplish this..



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.

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.

  • Create New...