I have an update button on a userform. When the user clicks this button it opens another workbook called update.xlsm. Once the update.xlsm opens, I have a macro in that workbook that closes the original workbook. This works great. Now I am trying to figure out, how I can add to the macro to delete the previous closed workbook, and replace that file with a fresh copy of the workbook stored on our network drive. Once the file is copied I want it to open and then close the update.xlsm workbook.
I am not sure how the macro will determine where the file to be deleted is located. Users save the file to any location they choose. When they click update, that file should be replaced regardless of location.
Any help on this will be greatly appreciated.