Hi,
I've created 6 variables, TargetNo1 through to TargetNo6. When I run the For loop I need it to use the counter in the loop and concatenate it with "Target" so I can then run an If statement on the values held TargetNo1 to TargetNo6.
The VBA I'm using is as follows:
But Target holds the text string of "TargetNo1" not the value of the variable.
Thanks for you help in advance
Gareth
I've created 6 variables, TargetNo1 through to TargetNo6. When I run the For loop I need it to use the counter in the loop and concatenate it with "Target" so I can then run an If statement on the values held TargetNo1 to TargetNo6.
The VBA I'm using is as follows:
Code:
For intLabel = 1 To 6
Target = ("TargetNo" & intLabel)
If Target = 0 Then
intLabel = intLabel + 1
But Target holds the text string of "TargetNo1" not the value of the variable.
Thanks for you help in advance
Gareth