Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is some code using Find/FindNext
Sub ColourTotals() Dim rngFound As Range Dim strFirstAddress As String Set rngFound = Columns("A").Find(What:="total", _ LookAt:=xlPart, _ LookIn:=xlValues, _ MatchCase:=False) If Not rngFound Is Nothing Then strFirstAddress = rngFound.Address Do rngFound.Resize(, 7).Interior.ColorIndex = 40 Set rngFound = Columns("A").FindNext(rngFound) Loop Until rngFound.Address = strFirstAddress End If End Sub -- HTH... Jim Thomlinson "Rock" wrote: Hello all, I was searching for some excel vba code that would search column A and if the word Total is found then that row is highlighted with a color, from column A to Column G.. Any suggested vba code? Thanks... |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Total column changes colors when total equals sum of other columns | New Users to Excel | |||
how can you highlight or color your total line in a Pivot table R | Excel Worksheet Functions | |||
How to click and highlight cells and calculate the total amount in MS Excel? | Excel Programming | |||
When i highlight cells, I USED to get total in bottom rt corner? | Excel Worksheet Functions | |||
highlight cells to obtain total without using formula? | Excel Discussion (Misc queries) |