PathSeparator Property [Publisher 2003 VBA Language Reference]
Returns a String that represents the character used to separate folder names. Read-only.
expression.PathSeparator
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
You can use PathSeparator to build Web addresses even though they contain forward slashes (/).
The FullName property returns the path and file name as a single string.
For worldwide compatibility, it is recommended to use this property when building paths rather than referring explicitly to path separator characters in code (for example, "/").
Example
This example displays the path and file name of the active document.
Sub PathFileName()
With Application
MsgBox "The name of the active document: " & vbLf & _
.Path & .PathSeparator & ActiveDocument.Name
End With
End Sub
Applies to | Application Object