|
-
Oct 10th, 2012, 10:36 PM
#13
Thread Starter
Junior Member
Re: Runtime error 76 "path not found"
 Originally Posted by MernaSly07
if i remove & "\" , it will error ..
how ?
hmm confused
 Originally Posted by DataMiser
Look at what you have here
Code:
If Right(GBLpathFile, 1) = "\" Then
path = path & "\" & "Daftar Karyawan" & "\" & Year(Date) & "\" & UCase(Format(Date, "MMMM")) & "\" & .FileTitle
Else
path = path & "\" & "Daftar Karyawan" & "\" & Year(Date) & "\" & UCase(Format(Date, "MMMM")) & "\" & .FileTitle
End If
There is no reason to even have an If test here as it will do the same thing no matter what the test result so 4 of those lines are useless or one of them is in error.
That said it is not the source of your error just a problem with the coding.
The error is telling you that whatever is in the path at the time is not valid. Look at what comes up in the message box then check to see if that folder exists on the drive where it is looking.
folder doesn't exists.
the message error "path not found"
but i had been added some coding. but still the same
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|