Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If I change a tab color, can I create a macro to automatically run and do the
following: 1) pull the tab name that was just changed 2) pull the color index that it was changed to? What I'm going to do with the above 2 items is then color another cell on a summary tab to match Thanks -- Regards, Dave |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm not aware of a worksheet tab event, but you can pull that info this way
Sub WSTab() Dim WS As Worksheet Dim WB As Workbook Set WB = ActiveWorkbook For Each WS In WB.Worksheets If WS.Tab.ColorIndex = xlColorIndexNone Then Debug.Print WS.Name, "No tab color" Else Debug.Print WS.Name, WS.Tab.ColorIndex End If Next WS End Sub -- HTH, Barb Reinhardt If this post was helpful to you, please click YES below. "David Billigmeier" wrote: If I change a tab color, can I create a macro to automatically run and do the following: 1) pull the tab name that was just changed 2) pull the color index that it was changed to? What I'm going to do with the above 2 items is then color another cell on a summary tab to match Thanks -- Regards, Dave |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Cell text color change event | Excel Programming | |||
Change row color on event | Excel Discussion (Misc queries) | |||
how to change the workbook name in a macro when the name us changed | Excel Programming | |||
CommandButton color change on event | Excel Programming | |||
Event Macro adjustment needed - need to change font color also | Excel Worksheet Functions |