scottcolbury
New Member
- Joined
- Dec 6, 2005
- Messages
- 45
Hi all,
I need to use a For/Next loop instead of "For Each FileItem In SourceFolder.Files" when looking at files in folder.
Instead of:
For Each FileItem In SourceFolder.Files
next FileItem
I need to use:
tempFileIncrement = 1
iTotal = SourceFolder.Files.Count
For q = tempFileIncrement To iTotal
Next q
Also, if this is possible what is the syntax for retrieving the name of a file?
I imagine its something like "FileItem(q).Name"?
Any ideas?
Thanks in advance!
s_c
I need to use a For/Next loop instead of "For Each FileItem In SourceFolder.Files" when looking at files in folder.
Instead of:
For Each FileItem In SourceFolder.Files
next FileItem
I need to use:
tempFileIncrement = 1
iTotal = SourceFolder.Files.Count
For q = tempFileIncrement To iTotal
Next q
Also, if this is possible what is the syntax for retrieving the name of a file?
I imagine its something like "FileItem(q).Name"?
Any ideas?
Thanks in advance!
s_c