D
Den
I am using the following sequence of code and I keep getting an error witht
the Kill statement. But I don't know why. The Filecopy statement works
fine but the Kill statement returns an error message saying an object is
required. What object, I have given it a valid file name and path. Any
suggestions?
ActiveWorkbook.SaveCopyAs (CurDir$ & "\" & myfname2)
On Error GoTo filenotcpy
Application.StatusBar = "Copying Temp file to Personnel"
FileCopy CurDir$ & "\" & myfname2, PersDir & myfname2
On Error GoTo cantdeletefile
Aplication.StatusBar = "Deleting Temp File"
Kill CurDir$ & "\" & myfname2
Application.StatusBar = ""
the Kill statement. But I don't know why. The Filecopy statement works
fine but the Kill statement returns an error message saying an object is
required. What object, I have given it a valid file name and path. Any
suggestions?
ActiveWorkbook.SaveCopyAs (CurDir$ & "\" & myfname2)
On Error GoTo filenotcpy
Application.StatusBar = "Copying Temp file to Personnel"
FileCopy CurDir$ & "\" & myfname2, PersDir & myfname2
On Error GoTo cantdeletefile
Aplication.StatusBar = "Deleting Temp File"
Kill CurDir$ & "\" & myfname2
Application.StatusBar = ""