Excel: Determining the Location of the Excel Startup FolderLast reviewed: November 30, 1994Article ID: Q78870 |
Summary:
The following macro statement returns the full path to the Microsoft Excel Startup Folder:
=GET.WORKSPACE(23)This folder is located in the System Folder with Apple's System 6.x, and in the Preferences Folder with System 7.0. In Excel for Windows, this directory is called XLSTART and is located in the Excel directory. More Information: This command is useful in macros designed to save Excel documents in the Excel Startup Folder. Files saved in this folder are loaded automatically when you launch Excel. The following macro demonstrates how to save the active document under the name "MyFile" in the Excel Startup Folder without changing the active folder: A1: Create Startup Document A2: =SET.NAME("file_name","MyFile") A3: =SAVE.AS(GET.WORKSPACE(23)&":"&file_name) A4: =RETURN() Note: In Microsoft Excel for Windows, replace the colon (:) in cell A3 with a backslash (\). Reference(s): "Microsoft Excel Function Reference," version 3.0, pages 116-118
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |