i have the following:
how can i dynamically change the start and end variables to new values?Please Login or Register to view this content.
i have the following:
how can i dynamically change the start and end variables to new values?Please Login or Register to view this content.
Last edited by dmcgov; 05-14-2021 at 11:49 AM.
Unclear … Maybe just using an InputBox, some cells, some … ?
Hi, I get an error when I try to use the reserved word "End" as you do, so I changed this variable into "halt" (It is never a good idea to use reserved words as variables)
I have this solution for you:
CheersPlease Login or Register to view this content.
Erwin
I started learning VBA because I was lazy ...
Still developing.... being more lazy...
If you want to continue counting you could add this line after the IF statement:
CheersPlease Login or Register to view this content.
Erwin
As nothing is 'dynamic' under Excel, just following the procedure in step-by-step debug mode …
In fact the 'dynamic' way is to not use any For … Next loop as obviously not 'dynamic'
but just some 'dynamic' loop block like While … Wend or Do … Loop with the variables accordingly …
thanks eastwood, that did the trick.
You are welcome.
If my assistance has helped, and only if you wish to, there is a reputation icon * on the left hand side - you can add to my reputation here.
Cheers
Erwin
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks