Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Excel Errors / November 2004

Tip: Looking for answers? Try searching our database.

Network / run time error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NA - 13 Nov 2004 21:29 GMT
I am running a code that works perfect in my PC but when I transfer it
to a network it gives me Run time Error 5.  It stops @ ChDrive.
The path is correct. I can run a Worbooks.Open path+ file name and it opens
w/o a problem.
Why is it not finding the path? Any ideas? The code stops running on the
third line

SaveDriveDir = CurDir
   MyPath = Worksheets("Table1").Range("B1")
   ChDrive MyPath  <<<<<<<<<<<<<<<<   here it returns a Run time error 5
   ChDir MyPath

Thank you very much.
- 15 Nov 2004 15:39 GMT
the only thing i see is that there is no path.
I see a file and a range but no path.
why is that?

>-----Original Message-----
>I am running a code that works perfect in my PC but when I transfer it
[quoted text clipped - 12 lines]
>
>.
NA - 15 Nov 2004 18:09 GMT
The path is written in cell B1 of Table1 ...
I've also added .Value after ("B1")
Do you see it now?

MyPath = Worksheets("Table1").Range("B1").Value
> >    ChDrive MyPath  

> the only thing i see is that there is no path.
> I see a file and a range but no path.
[quoted text clipped - 21 lines]
> >
> >.
- 15 Nov 2004 20:38 GMT
try commeting out hthe chdrive command.

>-----Original Message-----
>The path is written in cell B1 of Table1 ...
[quoted text clipped - 31 lines]
>>
>.
NA - 16 Nov 2004 15:53 GMT
I did it and it run perfect but using the c:\  drive

> try commeting out hthe chdrive command.
>
[quoted text clipped - 37 lines]
> >>
> >.
NA - 17 Nov 2004 00:25 GMT
It was a mapping problem.
It's working fine now.
Thanks

> try commeting out hthe chdrive command.
>
[quoted text clipped - 37 lines]
> >>
> >.
NA - 16 Nov 2004 15:52 GMT
I had already done that and it runs perfect but using the c:\ drive

> The path is written in cell B1 of Table1 ...
> I've also added .Value after ("B1")
[quoted text clipped - 28 lines]
> > >
> > >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.