csv to xls - data format

S

SR

Hi

I have .csv files to be opened in xls format make few corrections on the
data or number fields and save it back as .csv file.

problems:
1.when I open the .csv file as .xls, the date and numeric fields do not
match the data of .csv file. I assume it has been converted to the default
settings of the excel sheet.
2. after corrections are made, I want to save the file back to .csv file

I have never written a macro. So can one of you help.

Shanti
 
D

Dave Peterson

Rename the .csv file to .txt
start a new workbook
record a macro when you open the file--specify the correct date format for each
date field.
keep recording when you're updating the file--if your updates are all the same
save the workbook as a .csv file
stop recording

When you want to convert another file, just rerun that macro (remembering to
rename the .csv file to .txt before you start).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top