What is the VBA Object name for selecting the active sheets' tab to change its color.
Basically I want to change the color of a tab on a simple loop, but I can't select the active Tab.
Basically I want to change the color of a tab on a simple loop, but I can't select the active Tab.
Code:
Dim sheetNo As Integer
For sheetNo = 1 To Sheets.Count
Sheets(sheetNo).Activate
ActiveSheet.ActivateTab.Select
With ActiveTab
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.399975585192419
End With
Next
End Sub