View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Jim Cone Jim Cone is offline
external usenet poster
 
Posts: 3,290
Default Why not working? Array Problem.

musa.biralo,
It works for me on XL 97 and it works the same whether
the "AbcID(iAbc) = 5" line in included or not.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware


"musa.biralo"
wrote in message
Dim AbcID(1 To 100) As String
Dim iAbc As Integer
Dim AbcSheetName(1 To 100) As String

For iAbc = 1 To 10
AbcID(iAbc) = 5
''AbcID(iAbc) = Sheets("Data").Range("D" & iAbc + 5).Value
''AbcSheetName(iAbc) = Sheets("Data").Range("E" & iAbc + 5).Value
Next iAbc

End Sub

I was expecting AbcID(1), AbcID(2), ......
But it is always AbcID(iAbc), AbcID(iAbc)why...
Please help me....
Thanks
musa.biralo