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

VBA ChDir not working on a Network Share

Status
Not open for further replies.

Vordak

Programmer
Aug 9, 2005
2
US
Hello...

I am trying to change my current directory to a directory on a server.

CurDir says its "C:\....\My Documents\"

I tried to:
ChDir = ("\\cle-filesrv-01\.....\")

but it doesn't change my current path.

Any ideas?
 
Well, seems like I found a work around..

Had to map the drive, I used Z:\

ChDrive("Z:\")
ChDir(ActiveWorkbook.Path)

Worked, but didn't want to have to do the mapping, because if someone deletes the mapping, the program stops working.. :)

So if anyone else has a thought, let me know.

Thanks
 


Hi,

What are you using current directory for? Its a DOS throwback.

I never use, and I reference a network using server designations rather than drives.

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top