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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing a link from excel file to word file

Status
Not open for further replies.

Marckas

IS-IT--Management
Apr 17, 2002
65
US
I am trying to change the link of an excel file to a word file. I know you do it through VBA but my problem is that both these files are on a network drive in the same folder. When I try to access it from home by VPN or remote access the link does not work. I think the link is hard coded like : "L:\\P.doc". Is there any way I could not hard code it to the L: and just leave both files in the same folder. What code do I use. How do I do this, because when I am in my office it works and when I access in from home, it doesnt even though I have permission and rights to access the network drive. Please Help!!
 
Have you tried UNC? Find out what "L:" is, something like \\sfos009\users and then replace L: with the \\sfos009\users, then you don't need to worry about the drive letters. Of course, if there are security issues, this probably won't help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top