Archive of Mr Excel Message Board


Back to Excel VBA archive index
Back to archive home

"Save As" Macro

Posted by Scott on December 06, 2001 7:48 AM
Hello,

I have two questions:

Can anyone tell me how to write a macro to automate the changing of a .xls file to a .csv file? I have tried to do this by recording a macro, but can't get it right....perhaps some code?

Also, when converting a .xls file into a .csv file, the following happens: in each instance where there is a comma in the .xls file, double quotes appear when the transition is made to the .csv file. Any way to get rid of this? Thanks guys, any help would be greatly appreciated.


Check out our Excel VBA Resources

Re: "Save As" Macro

Posted by Mike on December 06, 2001 10:54 AM

ActiveWorkbook.SaveAs fileFormat:=xlCSV


This archive is from the original message board at www.MrExcel.com.
All contents © 1998-2004 MrExcel.com.
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.