Share via


CurrentDirectory Property

Home Page (Objects)OverviewFAQReference

Applies to: Application object

Gets or sets the directory used by the Open command on the File menu.

Syntax

object**.CurrentDirectory** [=string]

Parameters

object

An expression that evaluates to an Application object. When you access the CurrentDirectory property of the Application object, you can omit object because the name of the Application object is implied when you access its properties and methods.

string

A String that sets the directory.

Remarks

The CurrentDirectory property has the String type.

The directory name retrieved does not have a trailing backslash.

Example

The following example sets the current directory to C:\Msdev98:

Application.CurrentDirectory = "C:\MSDEV98"