Thursday, 3 January 2013

Excel VBA Macro to Delete Sheets Based on Their Tab Color

Excel VBA Macro to Delete Sheets Based on Their Tab Color
The Following Macro Will Delete the Sheets having Red[255] Color

Sub DelTabColor()

For Each ws In ThisWorkbook.Worksheets
ws.Activate
If ws.Tab.Color = 255 Then
ws.Delete
End If
Next ws

End Sub

No comments:

Post a Comment

Follow Me by Email

ExcelKingdom-Popular Posts

ExcelKingdom-Random Posts