Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I try to save a file in xlsx format, but I get a: "This extension can not be used with the selected file type. Change the file extension in the File name text box or select a different file type by changing the Save as type." the failing code look like this: xlWorkBook.SaveAs(fileName, Excel. XlFileFormat.xlExcel12, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlNoChange, misValue, misValue, misValue, misValue, misValue); What is the correct syntax? I can get it work with saving to xls file. Regards Kim |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kim, refer the below link
http://www.rondebruin.nl/saveas.htm If this post helps click Yes --------------- Jacob Skaria "Kim Carlsen" wrote: Hi I try to save a file in xlsx format, but I get a: "This extension can not be used with the selected file type. Change the file extension in the File name text box or select a different file type by changing the Save as type." the failing code look like this: xlWorkBook.SaveAs(fileName, Excel. XlFileFormat.xlExcel12, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlNoChange, misValue, misValue, misValue, misValue, misValue); What is the correct syntax? I can get it work with saving to xls file. Regards Kim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I batch convert 97-2003 .xls files to 2007 .xlsx files | Excel Discussion (Misc queries) | |||
Unable to save XLSX files without using 'Save As' and different na | Setting up and Configuration of Excel | |||
Help with xlsx files | New Users to Excel | |||
Automating the conversion of CSV files to XLSX files | Excel Programming | |||
unzip/zip xlsx files | Excel Discussion (Misc queries) |