Hi Guys,
In the entire workbook I would like the sheets with D3 cell empty to show the Tabs as red so I would know they need to be filled in - any ideas?
How about this
Sub colortab() Dim ws As Worksheet For Each ws In ActiveWorkbook.Worksheets If ws.Range("D3") = "" Then ws.Tab.Color = 255 Next ws End Sub
Try this, it goes in the WorkBook Module...
Private Sub Workbook_SheetActivate(ByVal Sh As Object) For Each Sh In ActiveWorkbook.Worksheets If Sh.Range("D1") = "" Then Sh.Tab.ColorIndex = 3 Else: Sh.Tab.ColorIndex = xlNone End If Next Sh End Sub
Reset The averages sheet to no color before you use the codePrivate Sub Workbook_SheetActivate(ByVal Sh As Object) For Each Sh In ActiveWorkbook.Worksheets If Sh.Name <> "averages" Then If Sh.Range("D1") = "" Then Sh.Tab.ColorIndex = 3 Else: Sh.Tab.ColorIndex = xlNone End If End If Next Sh End Sub
Dave,
thank you soooooooooooo much - Im going to have a great weekend because of this! thank you !!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks