XL: Setting Default Save As to Microsoft Excel 4.0 File FormatLast reviewed: February 3, 1998Article ID: Q125270 |
The information in this article applies to:
SUMMARYThe following example allows you to save the active worksheet in a Microsoft Excel workbook to the Microsoft Excel 4.0 Worksheet file format by default. Note that this example can easily be modified to save a workbook to any desired file format by default.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/default.aspThis example describes a method that allows you to save a worksheet to the Microsoft Excel 4.0 Worksheet file format by default by choosing a menu command. The example involves the following steps:
To Create the Procedure
For a list of the different FileFormat properties that you can use, choose the Search button in the Visual Basic Reference and type:
FileFormat Property To Add the Procedure to a Menu
To Create the Add-in
In Microsoft Excel for the Macintosh, you can copy the file to the 'Excel Startup Folder (5)' folder located in the System Folder:Preferences folder (System 7.0 or later) or the System Folder (System 6.0).
REFERENCESFor more information about the SaveAs Method, choose the Search button in the Visual Basic Reference and type:
SaveAs Method Keywords : kbcode kbprg PgmHowto Version : WINDOWS:5.0,5.0c,7.0; MACINTOSH:5.0,5.0a,98 Platform : MACINTOSH WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |