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!

Microsoft Excel VBA Code to convert .xls file to .csv file

Status
Not open for further replies.

tekvb1977

Technical User
Nov 16, 2005
46
US
I have an excel spreadsheet (.xls). I like to convert it to (.csv) format automatically. Not sure what would be the code in Excel VBA to do so. Any ideas, thoughts would be appreciated. Thanks.

J
 
Hi there,

You can still use the same save feature, just change the syntax slightly...

ActiveWorkbook.SaveAs "C:\YourPathGoesHere\YourFileNameGoesHere.csv", FileFormat:=xlCSV

change out ActiveWorkbook for whatever workbook you're wanting to save.

HTH

-----------
Regards,
Zack Barresse
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top