Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default save xlsx files

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default save xlsx files

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I batch convert 97-2003 .xls files to 2007 .xlsx files Dave Nuttall Excel Discussion (Misc queries) 4 August 3rd 09 11:38 PM
Unable to save XLSX files without using 'Save As' and different na SlackerBoy Setting up and Configuration of Excel 1 March 14th 09 09:14 PM
Help with xlsx files Jorge Cervantes New Users to Excel 1 February 25th 08 07:16 PM
Automating the conversion of CSV files to XLSX files Chris Excel Programming 3 November 28th 07 09:35 PM
unzip/zip xlsx files burrowsUW Excel Discussion (Misc queries) 3 March 11th 07 06:50 PM


All times are GMT +1. The time now is 07:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"