Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello all,
I have the following macro snippet that moves a txt file AFTER its data has been imported into a spreadsheet. It works great as long as the file doesn't already exist. Function TXTFileMove() OldFilePath = "C:\Import Files\New\" & TXTFileName NewFilePath = C"\Import Files\Complete\" & TXTFileName Name OldFilePath As NewFilePath End Function If the file already exists in that location, the macro halts with the error: Run-time error '58': File already exists [End] [Debug] I've tried enclosing the "path" commands with Application.DisplayAlerts = False, but it didn't work. |
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) |