Question: I think that I ' m defining the Key & Identifier incorrectly as well as ID which is causing my subroutine not to work..See below
I think that Im defining the Key & Identifier incorrectly as well as ID which is causing my subroutine not to work..See below and kindly assist where you think Im going wrong.Sub HighlightRows
Dim nr As Integer, i As Integer, ID As String, Identifier As String, Key As Integer
Call Reset
nr WorksheetFunction.CountAColumnsA:A
Identifier LeftID
Key IeftMidID
ID Range.CellsiSelect
For i To nr
If RangeA & nr Identifier And RangeA & nr Key Then
RangeCellsi CellsiInterior.ColorIndex
End If
Next i
End Sub
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
