Using this code to delete sheets I no longer want to include in my wb; but, I still have to click the confirm msg box that pops up for every sheet...
any way around it??
hope all are having a great one -- HUMP DAY!!!!
cliff
Code:
Sub DeleteOldSheets()
Dim Worksheet
Dim RSID As String
Dim WS_Count As Integer
Dim I As Integer
' Set WS_Count equal to the number of worksheets in the active
' workbook.
WS_Count = ActiveWorkbook.Worksheets.Count
' Begin the loop.
For I = 1 To WS_Count
ActiveWorkbook.Worksheets(I).Select
RSID = ActiveSheet.Name
Sheets(RSID).Select
If Len(RSID) < 5 Then
ActiveWindow.SelectedSheets.Delete
End If
Next I
End Sub
any way around it??
hope all are having a great one -- HUMP DAY!!!!
cliff