Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It causes an error (53 path not found) for me.
Marco Pagliero wrote: On 5 Mrz., 20:00, JLatham <HelpFrom @ Jlathamsite.com.(removethis) wrote: Or you could simply use KILL NewFilePath since you've already set that up in your code. Got in too big of a rush to copy. So Function TXTFileMove() OldFilePath = "C:\Import Files\New\" & TXTFileName NewFilePath = C"\Import Files\Complete\" & TXTFileName On Error Resume Next KILL NewFilePath If ERR<0 Then ERR.CLEAR End If On Error Goto 0 Name OldFilePath As NewFilePath End Function KILL doesn't generate an error if the file doesen't exist, KILL generates an error only if the file is open. So maybe "on error resume next" and the rest are not necessary after all. Greetings Marco P -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error with linked files....Macro Problem??? | Excel Worksheet Functions | |||
Move data Macro | Excel Discussion (Misc queries) | |||
remove error value when formula exists for empty cells | Excel Worksheet Functions | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
How do I move files that are linked with template wizard? | Excel Discussion (Misc queries) |