I'm trying to be more efficient with my code. I've got 6 variables c1, c2, ...., c6 I want to refer to the value of these variables in a loop. This is my loop:
For s = 1 To 6
c = "c" & s
If c <> "" Then
SendKeys c & "{enter}"
End If
Next s
I'm getting this
c1
c2
c3
c4
c5
c6
I want to get the values of c1, c2 etc.
Any advice?
For s = 1 To 6
c = "c" & s
If c <> "" Then
SendKeys c & "{enter}"
End If
Next s
I'm getting this
c1
c2
c3
c4
c5
c6
I want to get the values of c1, c2 etc.
Any advice?