• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to "reset" tabbed sheet colors back to normal?

One button two colors =>

Code:
Sub Swap_Tab_Color()
    Application.ScreenUpdating = False
    a_tab = ActiveSheet.Name
    a_color = Worksheets(a_tab).Tab.ColorIndex
    If a_color = 3 Then
        a_color = xlNone
    Else
        a_color = 3
    End If
    Worksheets(a_tab).Tab.ColorIndex = a_color
End Sub
 
Back
Top