Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Application.DefaultFilePath Property

Office 2007
Returns or sets the default path that Microsoft Excel uses when it opens files. Read/write String.

Syntax

expression.DefaultFilePath

expression   A variable that represents an Application object.

Example

This example displays the current default file path.

Visual Basic for Applications
MsgBox "The current default file path is " & _
    Application.DefaultFilePath



Community Additions

ADD
Show:
© 2015 Microsoft