ToolsOptionsFileLocations

Syntax

ToolsOptionsFileLocations .Path = text , .Setting = text

Remarks

Sets default folders. The arguments for the ToolsOptionsFileLocations statement correspond to the options on the File Locations tab in the Options dialog box (Tools menu). The new setting takes effect immediately.

Argument

Explanation

.Path

One of the following settings in the [Microsoft Word] section of WINWORD6.INI (Windows 3.x), Word Settings (6) (Macintosh), or the registry (Windows 95 and Windows NT):

DOC-PATH

PICTURE-PATH

USER-DOT-PATH

WORKGROUP-DOT-PATH

INI-PATH

AUTOSAVE-PATH

TOOLS-PATH

CBT-PATH

STARTUP-PATH

.Setting

The path for the default folder, or an empty string ("") to remove the setting from WINWORD6.INI (Windows), Word Settings (6) (Macintosh), or the registry (Windows 95 and Windows NT).


Example

This example sets the default folder for documents to C:\MYDOCS. On the Macintosh, substitute a folder name such as HD:WORD DOCS.


ToolsOptionsFileLocations .Path = "DOC-PATH", \
        .Setting = "C:\MYDOCS"

See Also

SetPrivateProfileString