Thread: Variable Name
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
LadaDriver LadaDriver is offline
external usenet poster
 
Posts: 1
Default Variable Name

Hi,

a little problem.

How can I access to my variables in a loop

Ex :

Dim Name1 as string
Dim Name2 as string
Dim Name3 as string

sub Test

Name1 = "X"
Name2 = "Y"
Name3 = "Z"
For i = 1 to 3
msgbox(*Name & i*) 'should display X then Y then Z
Next i
End Su

--
Message posted from http://www.ExcelForum.com