Table of contents
Collapse the table of content
Expand the table of content

Application.PathSeparator Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns a String that represents the character used to separate folder names. Read-only.


expression. PathSeparator

_expression_A variable that represents a Application object.

Return Value



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, we recommend that you use this property when building paths, rather than referring explicitly to path separator characters in code (for 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

See also


Application Object

© 2018 Microsoft