The path to the selected file.
object.Path
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISSaveFileDialog interface |
string
Show the dialog and display the selected file path.
Dim aDialog
Dim aResult
Set aDialog = Profile.CommonDialog.NewSaveDialog
aDialog.Caption = "Save Recent Notes"
aDialog.Filter = "*.txt||*.rtf||*.doc||*.*||"
aDialog.FileName = "MyNotes.txt"
aResult = aDialog.Execute
if aResult then
Profile.MsgBox("The selected file is in """ & aDialog.Path & """")
else
Profile.MsgBox("The file name was not selected")
end if