Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a workbook that is an empty file when opened. I have a button on
worksheet 1 that when selected will import a csv file to a different worksheet and then manipulate that date and then save it using a different file name.. I want to check if the different file exists; if it does then I want to purge a backup copy of the file that contains (old) as the last part of the file name. Next I want to rename the exist file (has not been opened) to the backup file using the "(old") suffix to the name. I'm hoping theres a VB FILE RENAME function that can be used to do this step. Once the file is renamed then I want to save the opened file, where the imported data is, to the name of the file that was prefiously renamed. I use the KILL function to delete the old file but I can't figure out how to rename the existing file as the backup file. Any ideas would be greatly appreciated. Thanks, El Bee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Renaming an excel file that is Linked. | Excel Worksheet Functions | |||
RENAMING WORKSHEETS | Excel Worksheet Functions | |||
Renaming A File | Excel Discussion (Misc queries) | |||
Renaming File Removes Worksheets | Excel Discussion (Misc queries) | |||
Copying and renaming a file | Excel Discussion (Misc queries) |