Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default Workbook change event when tab color changed?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Workbook change event when tab color changed?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell text color change event Pilot[_2_] Excel Programming 2 August 11th 08 07:10 PM
Change row color on event Dallman Ross Excel Discussion (Misc queries) 12 August 12th 07 09:35 PM
how to change the workbook name in a macro when the name us changed [email protected] Excel Programming 1 March 6th 07 11:36 AM
CommandButton color change on event peter.thompson Excel Programming 4 December 17th 05 03:30 AM
Event Macro adjustment needed - need to change font color also nick s Excel Worksheet Functions 2 November 28th 05 05:50 PM


All times are GMT +1. The time now is 04:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"