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

Automating Excel using UNC path.

Status
Not open for further replies.

hjohnson

Programmer
Aug 1, 2001
90
US
I need to be able to be able to modify an Excel file that happend to reside only in an UNC path. When trying to save, I get a invalid path Ole error.

Is there something I am doing wrong and if so, can someone point me in the right direction.

thanks

Hj
 

Can you post your code, we may be able to spot the problem. Have you put the path in quotation marks?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I think I may have figured out part of the problem- I'm using sys(5)+sys(2003) to setup full path of the file. For some reason sys(2003) is returning an Empty string. so instead of getting "\\Documents\newfile.xls", all I am getting is "\\newfile.xls"

As soon I can solve that it looks like UNC path should work just fine.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top