Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I'm comparing two lists and if a contract number equals that on another list I want to highlight the line in the original list. I have looked for ages on the web but everywhere that uses the range command seems to assume you know the row but I'm trying to use two variables as below. If Trim(Worksheets("Cappuchino Data").Cells(iCappuchinoRow, 7).Value) = Trim(Worksheets("Subs Safety Net").Cells(iSubsSafetyRow, 3).Value) Then Worksheets("Cappuchino Data").Range(Cells(iCappuchinoRow, 1), Cells(iCappuchinoRow, 31)).Interior.Color = 1 GoTo NextCappLine End If However, this just throws up an error. Can you please help? Many Thanks Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
changing cell background color | Excel Worksheet Functions | |||
Changing background color based on different cell | Excel Discussion (Misc queries) | |||
Macro for Changing Cell Background Color | Excel Programming | |||
automatically changing the background color of a cell | Excel Programming | |||
Changing the Cell Background Color when a keyword is entered | Excel Programming |