Where's my data??

mn1del

New Member
Joined
Oct 17, 2005
Messages
8
Hi all, can anybody help?

I'm running a macro which attempts to open up a csv file, and goes on to copy and paste certain info into my spreadsheet. However, I'm falling at the first hurdle: the following code (which is the first line of the macro) does seem to open up the file "xyz.csv", but it is completely blank!

Workbooks.Open Filename:="xyz.csv"

Where is all my information??

Many thanks in advance
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Uh, there is no data in the CSV text file?

Excel didn;t delete it unless your copy /paste macro was pasting blank data from the excel file into the text file (as in, your copy/paste was reveresed)...hope not...
 
Upvote 0
Also make sure that you are telling VBA to look in the correct directory.
 
Upvote 0

Forum statistics

Threads
1,215,050
Messages
6,122,868
Members
449,097
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