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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert XLS to CSV : Code not working

Status
Not open for further replies.

talss21

Technical User
Jun 22, 2012
3
US

strFile = replace(strOrigFile,".csv",".xls")

Set objExcel = CreateObject("Excel.Application")

objExcel.Workbooks.Open strOrigFile

objExcel.DisplayAlerts = False
objExcel.ActiveWorkbook.SaveAs strFile, -4143

objExcel.DisplayAlerts = False
objExcel.ActiveWorkbook.Close
objExcel.DisplayAlerts = False
objExcel.Application.Quit

This code is not working when converting csv to xls, Please help !
 
The link shows to comvert excel to CSV. But I need a script to convert .CSV to >XLS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top