StaffordStag
New Member
- Joined
- Oct 1, 2023
- Messages
- 5
- Office Version
- 2019
- Platform
- Windows
Can anyone help me please. I am writing VBA code which, if I can get it to work as I want it to, allows the user to select one of two ‘Do Until, Loop’ statements. Allow me to explain. My program outputs numbers printing them on a Worksheet. I wish to give the user the choice of either (A) limiting the output to a range of numbers, e.g. 100 to 10,000, or (B) allow the output of numbers to run without check until the user intervenes and halts the process. The lines of code are as follows:
Just so you know I am a novice when it comes to coding so if my terminology is questionable, please excuse me.
I am using Excel 2019 and VBA 7.1. I am running it on Windows 10, 64-Bit.
In anticipation of your help thank you.
- Do Until y = EndNumber …procedure….. y = y + 1, Loop
- Do Until y > StartNumber \ 10 + y …procedure….. y = y + 1, Loop
Just so you know I am a novice when it comes to coding so if my terminology is questionable, please excuse me.
I am using Excel 2019 and VBA 7.1. I am running it on Windows 10, 64-Bit.
In anticipation of your help thank you.