I have a macro that creates 18 worksheets containing data following Sheet1 which remains blank. At the end of my macro I want to delete Sheet1. I added this to my macro:
Sheets("Sheet2").Select
ActiveWindow.SelectedSheets.delete
Which works but requires the user to click the Delete button when the dialog button pop-ups.
I'd like to have the macro click the delete button instead.
Can anyone please help? TIA!!