LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 152
Default chdir not accepting string for path

Hi all,

Consider the following:

Dim MyPath as String
MyPath = "\\xxx\yyy"

If I execute ChDir MyPath, I get a "Can't find path" error. But if I execute
ChDir "\\xxx\yyy", I don't get an error. I've also used
SetCurrentDirectoryA(MyPath)
with the same nasty result. Passing a quoted path string, however, works.

Any idea what is going on??? It seems to be central to using a network path
name.

TIA
Alan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Path in Connection String Breunus Excel Discussion (Misc queries) 2 July 29th 09 05:10 PM
Getting a String Path from a browser... Juan Sanchez Excel Programming 9 July 23rd 04 05:28 PM
Links and Chdir Hansol Excel Programming 3 April 17th 04 08:52 PM
Stripping Path from File String Nigel[_6_] Excel Programming 15 February 26th 04 06:35 AM
application.dialogs(xlDialogSaveAs) AND CHDIR Jules[_2_] Excel Programming 1 September 3rd 03 08:27 PM


All times are GMT +1. The time now is 08:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"