Results 1 to 1 of 1
2005-10-03, 15:07 #1
- Join Date
- Feb 2001
- Yilgarn region of Toronto, Ontario
- Thanked 0 Times in 0 Posts
.name double quotes space (WordXP)
FYI this just tripped me up.
<pre>Public Function strBrowseFile()
If .Display = True Then
Dim strResult As String
strResult = STRFIXPATH(Options.DefaultFilePath(wdCurrentFolder Path))
strBrowseFile = strResult & .Name
' MsgBox strBrowseFile
If the user has browsed to a file with an embedded space character, the .Name returned will be enclosed in quotes. (otherwise my check-for-legal-name routine finds the double-quote and frightens the user!)
I must trim them from the .Name before appending it to my result strBrowseFile.