Forum

Notifications
Clear all

Too Many files

3 Posts
3 Users
0 Reactions
111 Views
(@mbw00001)
Posts: 6
Active Member
Topic starter
 

I have a VBA macro which has to open around 20,000 Las files as text for input one at a time. An error occurs "Too Many Files" after processing 256 files. I assume I must close each Open file For Input after processing. I tried close (File Name) and Close(File Path) without any success.

Actually I need a command line to add to my loop to close each Open file For Input at the end of cycle of the loop
 

 
Posted : 31/10/2020 9:53 pm
(@purfleet)
Posts: 412
Reputable Member
 

Do you have an example of the code you are using? Please attach a workbook

 
Posted : 01/11/2020 2:12 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Mourad,

What are you doing with these files?  

Power Query might be a better solution depending on what you are doing.

Phil

 
Posted : 02/11/2020 12:14 am
Share: