RodrigoFinguer
Board Regular
- Joined
- Jun 13, 2017
- Messages
- 75
Hello guys, i am beating my head here
need your help... i have 2 strings and i want a variant to call this string through an iteration, but i can't get it.
My "desc" is returning "var1" and not "Empresa" as i need.
need your help... i have 2 strings and i want a variant to call this string through an iteration, but i can't get it.
Code:
Sub teste()
Dim i As Integer
For i = 1 To 2
var1 = "Empresa"
var2 = "Material"
desc = "var" & i
l = Application.Match(desc, Range("A1:A100"), 0)
Columns(l).Select
Next
End Sub
My "desc" is returning "var1" and not "Empresa" as i need.