Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Followhyperlink with #

Status
Not open for further replies.

rejome

Programmer
May 9, 2002
17
CA
I'm trying to open a file with followhyperlink. I got an error cause the name of my file is "Excel #54.xls" and the sharp is seen as an html tag...well I think. Any suggestion to bypass this?
 
Say you have s = "Excel #54.xls"
Have you tried something like this ?
s = Replace(s, "#", "%23")

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Sorry PHV, it didn't work. Here's the code I tried:

s = "\\files\Excel #.xls"
s = Replace(s, "#", "%23")
Application.followhyperlink s
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top