Where should I look for to resolve this. I appreciate any
help for resolution. Thanks.
Sorry but the crystal ball has failed!!
You need to provide the code that you are using.
strSourceFileName = "c:\CarLogOutPut\CarLogExportTemplate.xls"
WorkBookName = "c:\CarLogOutPut\CarLogExport.xls"
If Dir(strSourceFileName) = "" Then
MsgBox "CarLogExportTemplate.xls does not exist. It must exist for
processing", vbInformation, "File does not exist"
Exit Sub
End If
The line Dir(strSourceFileName) is where the error is coming:
The error number is Run time error 52: Bad file name or number
I am not sure if this is a permission
issue or something else. However the Dir function
is the one which is not working here.
Thanks.
"NeilH" wrote:
> .
>
In inaccessible folder will generate this error.
Note that not existing doesn't count.
In this case, I used a non existent drive, but I believe permissions
will do the same.
--
Dee Earley (dee.e...@icode.co.uk)
i-Catcher Development Team
iCode Systems