Hello,
I am using the following code to delete some sheets from a workbook. I keep getting the error: "Object doesn't support this method or property".
Could someone please tell me the proper object to use with this code?
Thanks
With Excel.ActiveWorkbook
.DisplayAlerts = False
.Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
.ActiveWindow.SelectedSheets.Delete
End With
I am using the following code to delete some sheets from a workbook. I keep getting the error: "Object doesn't support this method or property".
Could someone please tell me the proper object to use with this code?
Thanks
With Excel.ActiveWorkbook
.DisplayAlerts = False
.Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
.ActiveWindow.SelectedSheets.Delete
End With