Hi Macro that opens and closes a series of workbooks and updates them the workbooks are getting a little big so I want to automatically delete some of the history tabs as they are updated. I have
written a Macro that makes this happen :
Sheets(“Option and macros”).select
shdel = cells((9,7).value
‘this being the generated tab name to delete
Sheets(shdel).select
ActiveWindow.SelectedSheets.Delete
I then get an message from excel asking if I want to errantly delete the sheet, is there any way to automatically say yes Delete with the Macro as this runs through multiple workbooks over night
?
Thanks