Anyone know of a way to do the following.
I have 4 variables
I want to do a for loop from 1 to 4 and print each variable in turn, such as this
I know this doesn't work, but how do I reference a variable in this way? Can I reference it somehow?
David Pimental
(US, Oh)
I have 4 variables
Code:
var1 = "Red"
var2 = "White"
var3 = "Blue"
var4 = "Green"
I want to do a for loop from 1 to 4 and print each variable in turn, such as this
Code:
for i = 1 to 4
debug.print var & i
Next
I know this doesn't work, but how do I reference a variable in this way? Can I reference it somehow?
David Pimental
(US, Oh)