#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default save as .xls

hi,
i'm working with excel 2007.
i set in the excel option, the option "save files in format" with the value
"excel 97-2003 workbook(.xls)".
but still, when i create a new file via macro, and use the following:
Workbooks.Add.SaveAs FileName:="bla_bla.xls"
or
Workbooks.Add.SaveAs FileName:="bla_bla.xls"
FileFormat:=XlFileFormat.xlWorkbookDefault
it still save the file with the .xls extention but under as .xlsx type.
please help.
--
Miri Tz.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 533
Default save as .xls

The UI default and specifying a file extension has no effect. You have to
say what you want, in your case:

FileFormat:=xlExcel8

--
Jim
"Miri" wrote in message
...
hi,
i'm working with excel 2007.
i set in the excel option, the option "save files in format" with the
value
"excel 97-2003 workbook(.xls)".
but still, when i create a new file via macro, and use the following:
Workbooks.Add.SaveAs FileName:="bla_bla.xls"
or
Workbooks.Add.SaveAs FileName:="bla_bla.xls"
FileFormat:=XlFileFormat.xlWorkbookDefault
it still save the file with the .xls extention but under as .xlsx type.
please help.
--
Miri Tz.



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
Save As and save current numbers not the actual formulas and links Frank Menard Excel Discussion (Misc queries) 2 November 9th 06 09:18 PM
Command Button Save As Application.ExecuteExcel4Macro ("SAVE.AS?() Paul Dennis Excel Discussion (Misc queries) 5 September 18th 06 05:34 PM
how to get disk icon on save button of save as dialog like 2000 RichT Excel Discussion (Misc queries) 2 March 9th 06 08:13 PM
when i save xls file, debug script is running and canno't save fil Imtiaz Excel Discussion (Misc queries) 1 July 16th 05 03:47 PM
Save Excel file - prompts to save - no Volitile functions used POWER CERTS Excel Worksheet Functions 2 November 1st 04 09:27 PM


All times are GMT +1. The time now is 01:20 PM.

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

About Us

"It's about Microsoft Excel"