daniel22bg
New Member
- Joined
- Nov 21, 2008
- Messages
- 31
Hi,
I want to write a loop which goes through all excel files in a folder and copies some stuff.
For the purpose, I want to avoid using file references by any specific file name. However, I am not sure how I can do that formally in VBA. Can you please help? I need something of the kind:
For i = 1 to 100
Workbook(i).Sheets("SheetName").Select
....
Next i
I want to write a loop which goes through all excel files in a folder and copies some stuff.
For the purpose, I want to avoid using file references by any specific file name. However, I am not sure how I can do that formally in VBA. Can you please help? I need something of the kind:
For i = 1 to 100
Workbook(i).Sheets("SheetName").Select
....
Next i