Hi all,
I've created a tool in Excel that imports data from a raw data file that the user selects. When the tool has gotten the data it needs it uses this line to close the raw data file:
Workbooks(FileName).Close False
FileName is the name of the raw data file the user selected.
I've set break points in my code to find out why the entire import process takes 1 minute, and what I've discovered is that the line above is taking nearly 40 seconds by itself. I'm not saving the workbook and I have calculation set to manual, so I just can't see why it would take this line of code 40 seconds to execute. There are no events in my workbooks either.
Does anyone have any ideas or suggestions?
Thanks,
Clint
I've created a tool in Excel that imports data from a raw data file that the user selects. When the tool has gotten the data it needs it uses this line to close the raw data file:
Workbooks(FileName).Close False
FileName is the name of the raw data file the user selected.
I've set break points in my code to find out why the entire import process takes 1 minute, and what I've discovered is that the line above is taking nearly 40 seconds by itself. I'm not saving the workbook and I have calculation set to manual, so I just can't see why it would take this line of code 40 seconds to execute. There are no events in my workbooks either.
Does anyone have any ideas or suggestions?
Thanks,
Clint