Excel: Changing the Default DirectoryLast reviewed: August 25, 1995Article ID: Q74342 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, there are various methods to change the default directory in which Microsoft Excel starts. Microsoft Excel will normally start up with the directory to which you installed Microsoft Excel as the active directory, but you may want to change this default to a specified directory. You can check the current default directory by choosing Open from the File menu after starting the Microsoft Excel program. The current directory is listed after "Directory is..."
Microsoft Excel Version 3.0Modify Program Icon Properties:
If you are using Windows 3.1, you can change the Working Directory from within Program Manager. From the File menu, choose Properties and type the path in the Working Directory field box.
Microsoft Excel Versions 3.0 and 4.0 OnlyCreate An Add-In:
A1: DEFAULT_DIR A2: =DIRECTORY("C:\USER") A3: =RETURN() Documents that are saved in the XLSTART directory are automatically opened when the Microsoft Excel program is started. Because this macro sheet is saved as an add-in macro, it will open as hidden. You are unable to view it, even by choosing the Window Unhide command. However, the macro will run because it has been saved as an Auto_Open macro.
Microsoft Excel Versions 2.x, 3.x, and 4.xCreate an Auto_Open Macro:
Use /p Startup Switch: You can specify a default working directory by using the "/p" startup switch. For more information, refer to the "User's Guide."
Microsoft Excel Version 4.x OnlyYou can add an OPEN= statement in the [Microsoft Excel] section of your EXCEL4.INI file and use the /p option. This option specifies a directory to be used as the default directory from which documents are opened and to which documents are saved. Enter this option to the right of the equal sign in the OPEN= statement.
Microsoft Excel Version 4.0a OnlyYou can add the line "OpenDir=<path>" to the EXCEL4.INI to set the working directory. This option overrides the icon properties working directory information and command line switches.
Microsoft Excel Version 5.0For information about changing the working directory in Microsoft Excel version 5.0, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q110209 TITLE : XL5: Hierarchy of Methods to Change the Working Directory Microsoft Excel Version 7.0For information about setting the default file location in Microsoft Excel version 7.0, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q135474 TITLE : XL7: Starting Microsoft Excel with a Different Working Folder REFERENCES"Microsoft Windows User's Guide," version 3.1, pages 79-81 "Microsoft Windows User's Guide," version 3.0, pages 89-91 "Microsoft Excel User's Guide 1," version 4.0, pages 79-80, 292 "Microsoft Excel User's Guide," version 3.0, pages 553, 651 "Microsoft Excel Reference Guide," version 2.1, pages 209-211 "Microsoft Excel Functions and Macros," version 2.1, pages 270, 353
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |