T
thomas donino
I am trying to locate certain text in a cell and if found I want to look at
each cell to its right, one at a time and if the number in the cell is
greater than 75 bold it and background color it yellow. I am having trouble
with 1. How to determine that the string is found and in what cell and 2. how
to set up the loop to look across the row.
ranPerfInfoEndCell.Column is the last column in that range
'get the last cell in the Performance output range
Col = ranPerfInfoStartCell.Column
Rw = Sheet1.Cells((ranPerfInfoStartCell.Row), (Col)).End(xlDown).Row
Col = Sheet1.Cells([Rw], 50).End(xlToLeft).Column
Set ranPerfInfoEndCell = Sheet1.Cells([Rw], [Col])
Set ranPerfInfo = Sheet1.Range(ranPerfInfoStartCell, ranPerfInfoEndCell)
Set varFound = ranPerfInfo.Find("PctPos")
If Not varFound Is Nothing Then
Exit Sub
Else
For i =
each cell to its right, one at a time and if the number in the cell is
greater than 75 bold it and background color it yellow. I am having trouble
with 1. How to determine that the string is found and in what cell and 2. how
to set up the loop to look across the row.
ranPerfInfoEndCell.Column is the last column in that range
'get the last cell in the Performance output range
Col = ranPerfInfoStartCell.Column
Rw = Sheet1.Cells((ranPerfInfoStartCell.Row), (Col)).End(xlDown).Row
Col = Sheet1.Cells([Rw], 50).End(xlToLeft).Column
Set ranPerfInfoEndCell = Sheet1.Cells([Rw], [Col])
Set ranPerfInfo = Sheet1.Range(ranPerfInfoStartCell, ranPerfInfoEndCell)
Set varFound = ranPerfInfo.Find("PctPos")
If Not varFound Is Nothing Then
Exit Sub
Else
For i =