Bruce
asked on
Save an Excel file to CSV in a client side VBScript in an ASP.NET 2.0 app.
Need to be able to save an Excel file to CSV in a client side VBScript in an ASP.NET 2.0 app.
This following code works fine until the SaveAs. Excel.XlFileFormat.xlCSVWi ndows seems to be undefined.
Set appExcel = createobject("Excel.Applic ation")
Set myworkbook = appExcel.workbooks.open(fi leName)
Set allwShts = myworkbook.Worksheets
...do some work...
fileNameCSV = left(fileName, len(fileName)-3) & ".csv"
myworkbook.SaveAs fileNameCSV, Excel.XlFileFormat.xlCSVWi ndows
Here's another guy with the same problem...
http://www.thescripts.com/forum/thread223814.html
There are only two pages returned from Google when searching "Excel.XlFileFormat.xlCSVW indows"
Can I hard code a value for the call to SaveAs?
This following code works fine until the SaveAs. Excel.XlFileFormat.xlCSVWi
Set appExcel = createobject("Excel.Applic
Set myworkbook = appExcel.workbooks.open(fi
Set allwShts = myworkbook.Worksheets
...do some work...
fileNameCSV = left(fileName, len(fileName)-3) & ".csv"
myworkbook.SaveAs fileNameCSV, Excel.XlFileFormat.xlCSVWi
Here's another guy with the same problem...
http://www.thescripts.com/forum/thread223814.html
There are only two pages returned from Google when searching "Excel.XlFileFormat.xlCSVW
Can I hard code a value for the call to SaveAs?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You get the points man!