Article ID: 183996
Article Last Modified on 11/23/2006
APPLIES TO
- Microsoft Word 98 for Macintosh
This article was previously published under Q183996
SUMMARY
This article discusses methods you can use to change the default folder that appears when you click Open on the File menu.
MORE INFORMATION
Microsoft 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 professionals 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 a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, please visit the following Microsoft Web site:
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
To change the default folder that is displayed when you click Open on the File menu, use either of the following methods.
NOTE: Word will select the folder based on settings found in the Documents section of the General Controls control panel. This control panel allows you to set one of the following options:
- Folder that is set by the application.
If you select this option, Word uses the folder you selected on the File Locations tab in the Preferences dialog box.
- Last folder used in the application.
If you select this option, the setting you specified on the File Locations tab in the Preferences dialog box is ignored.
- Documents folder.
If you select this option, the setting you specified on the File Locations tab in the Preferences dialog box is ignored.
Method 1: To manually change the default folder
Use the following steps to manually change the default folder:
- On the Tools menu, click Preferences.
- Click the File Locations tab.
- Under File Types, select Documents, and then click Modify.
- Change to the desired location.
Method 2: Using a macro to change your default directory
NOTE: When you exit Word after you have modified or added these changes, you may be prompted to save the changes to the Normal template. Click Yes to save your changes.
Use the following example Visual Basic for Applications macro to change the default document folder:
Sub SetDefaultFolder() ' Set the default folder. ' Note: Substitute any existing path and folder. Options.DefaultFilePath(Path:=wdDocumentsPath) = "Mac HD:My Docs:" End Sub
For additional information, please see the following articles in the Microsoft Knowledge Base:
REFERENCES
For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon vb vba vbe grey gray unavailable set filespec filetype format
Keywords: kbdtacode kbhowto kbmacroexample kbprogramming KB183996