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
Thanks,Tamatam
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
Thanks,Tamatam
No comments:
Post a Comment
Hi User, Thank You for visiting My Blog. Please post your genuine Feedback or comments only related to this Blog Posts. Please do not post any Spam comments or Advertising kind of comments which will be Ignored.