Hello all,
i was kindly helped with a vba code today, which worked great, but i've come across another issue.
i have a summary sheet with a list of suppliers, which all have their own tabs. i wanted the suppliers in the summary sheet to match the colour of the sheet tabs. my problem is when the tabs are the normal colour the summary sheet supplier names cell go black and i need them to stay clear.
This is the code i'm using.
many thanks,
Mattless
i was kindly helped with a vba code today, which worked great, but i've come across another issue.
i have a summary sheet with a list of suppliers, which all have their own tabs. i wanted the suppliers in the summary sheet to match the colour of the sheet tabs. my problem is when the tabs are the normal colour the summary sheet supplier names cell go black and i need them to stay clear.
This is the code i'm using.
Code:
Sub ColorSupplier()
Dim supplier As Range, ws As Worksheet
For Each supplier In Sheets("Summary").Range("A4", Sheets("Summary").Range("A" & Rows.Count).End(xlUp))
For Each ws In ActiveWorkbook.Sheets
If UCase(ws.Name) = UCase(supplier) Then
supplier.Interior.Color = ws.Tab.Color
Exit For
End If
Next ws
Next supplier
End Sub
many thanks,
Mattless
Last edited by a moderator: