How to followhyperlink to a folder with a minus sign in the name

C

ChristopherL

Hello, how do I use "followhyperlink" to open a folder with a minus
sign in its name?

All of the following string arguments (such as below) have failed:

"<c:\file-1>:
"'c:\file-1'"
"file://c:\file-1"
"c:\file%xy1"
"c:\filexy%1"
"'c:\filexy%1'"

xy is the ascii hex number for minus.

All of this has been typed from memory, and so I may have typed a
string incorrectly above!

Thank you,
Christopher Lusardi
 
G

Gary''s Student

Sub qwerty()
ActiveWorkbook.FollowHyperlink Address:="file:///c:\temp\a-b"
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top