I'm trying to implement a loop on a set of variables of the same type which are named strn, where n is an integer.
Why does this code doesn't work? How should I define the intermediate variable aux?
Code:Dim auxAs Object Dim str1 As String Dim str2 As String str1 = "str1" str2 = "str2" For i = 1 To 2 Set obj= "Str" & 1 MsgBox aux.Name Next i




Reply With Quote