[COLOR=navy]Sub[/COLOR] MG18May06
[COLOR=navy]Dim[/COLOR] Rng [COLOR=navy]As[/COLOR] Range, Dn [COLOR=navy]As[/COLOR] Range
[COLOR=navy]Dim[/COLOR] n [COLOR=navy]As[/COLOR] [COLOR=navy]Integer[/COLOR]
[COLOR=navy]Dim[/COLOR] Jobs(1 To 10, 1 To 2)
'[COLOR=green][B] alter the "10" (Above) to the number of jobs[/B][/COLOR]
'[COLOR=green][B]& add to array (below) with proper Job Names and[/B][/COLOR]
'[COLOR=green][B]your chosen colour index.[/B][/COLOR]
Jobs(1, 1) = "Jobs1": Jobs(1, 2) = 5 '[COLOR=green][B]Alter last number (color Index)as Req'ed from Color Code[/B][/COLOR]
Jobs(2, 1) = "Jobs2": Jobs(2, 2) = 3
Jobs(3, 1) = "Jobs3": Jobs(3, 2) = 6
Jobs(4, 1) = "Jobs4": Jobs(4, 2) = 4
Jobs(5, 1) = "Jobs5": Jobs(5, 2) = 35
Jobs(6, 1) = "Jobs6": Jobs(6, 2) = 6
Jobs(7, 1) = "Jobs7": Jobs(7, 2) = 8
Jobs(8, 1) = "Jobs8": Jobs(8, 2) = 44
Jobs(9, 1) = "Jobs9": Jobs(9, 2) = 7
Jobs(10, 1) = "Jobs10": Jobs(10, 2) = 2
[COLOR=navy]Set[/COLOR] Rng = Range("C7:C50")
[COLOR=navy]For[/COLOR] [COLOR=navy]Each[/COLOR] Dn [COLOR=navy]In[/COLOR] Rng
[COLOR=navy]For[/COLOR] n = 1 To UBound(Jobs)
[COLOR=navy]If[/COLOR] Dn.Interior.ColorIndex = Jobs(n, 2) [COLOR=navy]Then[/COLOR]
Dn.Offset(, 10) = Jobs(n, 1)
[COLOR=navy]ElseIf[/COLOR] Dn.Interior.ColorIndex = xlNone [COLOR=navy]Then[/COLOR]
Dn.Offset(, 10) = vbNullString
[COLOR=navy]End[/COLOR] If
[COLOR=navy]Next[/COLOR] n
[COLOR=navy]Next[/COLOR] Dn
[COLOR=navy]End[/COLOR] [COLOR=navy]Sub[/COLOR]