ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Save As csv file between Excel versions (https://www.excelbanter.com/excel-programming/328078-save-csv-file-between-excel-versions.html)

EdwardH

Save As csv file between Excel versions
 
On my development machine VB6 application creates Excel 2003 worksheet and
saves the following fine:
xlSheet.SaveAs FileName:="C:\Auction\NandB.csv",
FileFormat:=Excel.XlFileFormat.xlCSV, CreateBackup:=False

On Users machine my application gpfs but creates Excel 2000 worksheet.
Grateful for any pointers


Jim Rech

Save As csv file between Excel versions
 
I wonder if replacing the "Excel.XlFileFormat.xlCSV" with the constant 6
helps.

--
Jim
"EdwardH" wrote in message
...
| On my development machine VB6 application creates Excel 2003 worksheet and
| saves the following fine:
| xlSheet.SaveAs FileName:="C:\Auction\NandB.csv",
| FileFormat:=Excel.XlFileFormat.xlCSV, CreateBackup:=False
|
| On Users machine my application gpfs but creates Excel 2000 worksheet.
| Grateful for any pointers
|



EdwardH

Save As csv file between Excel versions
 
Jim,
Thank you for your suggestion - I fear it made no difference.
EdwardH

"Jim Rech" wrote:

I wonder if replacing the "Excel.XlFileFormat.xlCSV" with the constant 6
helps.

--
Jim
"EdwardH" wrote in message
...
| On my development machine VB6 application creates Excel 2003 worksheet and
| saves the following fine:
| xlSheet.SaveAs FileName:="C:\Auction\NandB.csv",
| FileFormat:=Excel.XlFileFormat.xlCSV, CreateBackup:=False
|
| On Users machine my application gpfs but creates Excel 2000 worksheet.
| Grateful for any pointers
|





All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com