cant import csv file to excel when first open

Leeinsa

Board Regular
Joined
Jul 24, 2009
Messages
96
I have a workbook which imports date from several csv files in a fixed directory. I've been working with the same files with no problems for a day. After closing the excel workbook down overnight, and re-opening it the next day i suddenly get an error message when i try to import the data.

Run-time error '1004'
Excel cannot find the text file to refresh this external data range.
Check to make sure the text file has not been moved or renamed, then try the refresh again.

I've made no changes to the excel sheet or the data files, they are all in the same directories as yesterday but I cannot get passed this error message.

The data import is performed using a vba macro (which worked perfectly yesterday) now it's Kaput.

Anyone have any ideas?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You could always try posting the code you're working with to the board...
 
Upvote 0
Thanks Weaver,

Turns out it was a problem with my chubby fingers typing the wrong file path in the worksheet containing my fixed information. Have corrected the path and all is now ok. No idea why it all worked yesterday, but hey, I'll live with it.

Thanks again,

Lee.
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top