Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change FILE FORMAT

Status
Not open for further replies.

scottie1

Programmer
Dec 12, 2003
50
GB
Hi folks

I'm trying to work out how to change the open CSV file to Excel and then save it as the same file name,
 
Take a look at the SaveAs method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I dont think I explained it very well, really what I need to do is open up a folder with all the CSV files and be able to save them exactly the same but as XLS file. I dont really want to open them all up individually and go through the moves of saving to XLS.
 
Given that we are in the VBA forum, I suspect that PHV was intimating that you could use a program that uses the SaveAs method to automate the conversion; you don't have to do it manually...
 
In VBA for excel, take a look at the Dir function (something like x=Dir("*.csv"), use the F1 key to get examples), and at the Workbooks.Open and ActiveWorkbook.SaveAs methods.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top