Question: Sub HighlightRows ( ) Dim nr As Integer, i As Integer, ID As String, Identifier As String, Key As Integer nr = WorksheetFunction.CountA ( Columns
Sub HighlightRows
Dim nr As Integer, i As Integer, ID As String, Identifier As String, Key As Integer
nr WorksheetFunction.CountAColumnsA:A
Identifier LeftID
Key LeftMidID
For i To nr
If rangeA & i rangeIdentifier And rangeA & i rangeKey Then
rangeA :C & i Interior.ColorIndex
rangeB & i Interior.ColorIndex
rangeC & i Interior.ColorIndex
End If
Next i
End Sub
This When a match is found in a row, all three columns of data columns A B and C must be highlighted green.
"Green" refers to the interior color index equal to For example, RangeAInterior.ColorIndex would color cell A green. The grader file is specifically looking for this ColorIndex! If you color the cells a different shade of green, it won't pass the grader!
When additional rows are added to the data for example, in row and beyond your sub should automatically detect the size of data number of rows and adjust accordingly.
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
