I am trying (in VBA) to define a large number of string variables. The brute force would be :
Dim Port1 as String
Dim Port2 as String
etc…
Unpleasant for say 100 variables. There must be a more intelligent solution. I have tried :
Dim n As Integer
For n = 1 To 100
Dim "Port" & n as String
Next n
and variations of it without success. I would greatly appreciate if someone could point me in the right direction or share an example.