Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
Hi, I have been struggling to write some VBA code (tried many variations) that will close the workbook in which the VBA code runs, then delete the workbook itself as well as the entire folder that contains it. The problem is the code can’t delete the workbook and folder unless and until the workbook is closed, but the code itself stops running when the workbook is closed so it also won’t delete the workbook and folder. How to allow the VBA code to keep running and delete the workbook and folder after the workbook containing the VBA code is closed???