Thread
:
Filename array
View Single Post
#
1
Posted to microsoft.public.excel.programming
Ardus Petus
external usenet poster
Posts: 718
Filename array
dim MyArray as Variant
dim i as long
MyArray=Array("one.xls","two.xls","three.xls")
For i = Lbound(MyArray) to Ubound(MyArray)
Msgbox MyArray(i)
Next i
HTH
--
AP
"pianoman" a écrit
dans le message de news:
...
Hi All,
I need to cycle a set of command for each file in a list... the files
do not share folders, or filename structure or anything, so I really
need to hard-code the filenames in, and then define the next name after
each iteration. What's the best way of doing this... presumably define
an array of names and then cycle that?? How do I do that then?! :)
Thanks, as always,
Gareth
--
pianoman
------------------------------------------------------------------------
pianoman's Profile:
http://www.excelforum.com/member.php...o&userid=33712
View this thread:
http://www.excelforum.com/showthread...hreadid=547409
Reply With Quote
Ardus Petus
View Public Profile
Find all posts by Ardus Petus