I have a series of variables in a number sequence.
I am using a loop with a counter incrementing it. A simplistic example is shown below.
I need to reproduce the variable name within the loop using the number of the incrementing counter. The result from the message box will be.
Any suggestions 'cause this is driving me bl**dy mad?!!!! Cheers...
Code:
Const strTest1 = "A"
Const strTest2 = "B"
Const strTest3 = "C"
I am using a loop with a counter incrementing it. A simplistic example is shown below.
Code:
intCounter = 1
Do...
Msgbox strTest & intCounter
intCounter = intCounter + 1
Loop
I need to reproduce the variable name within the loop using the number of the incrementing counter. The result from the message box will be.
Code:
A
B
C
Any suggestions 'cause this is driving me bl**dy mad?!!!! Cheers...