Quote Originally Posted by MernaSly07 View Post
if i remove & "\" , it will error ..
how ?
hmm confused
Quote Originally Posted by DataMiser View Post
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