I have an 2d array with values in it. The basic structure for each row in the table is:
Name | Detail 1a |Detail 2a | Detail 1b | Detail 2b...
I want to compare all the detail 1's with each other and then all the Detail 2's with each other. If any of the compared details do not match, I want the row to be highlighted.
This is what I have so far:
I think I'm missing something, but I'm not sure what... Any help would be greatly appreciated.
-Skye.
Name | Detail 1a |Detail 2a | Detail 1b | Detail 2b...
I want to compare all the detail 1's with each other and then all the Detail 2's with each other. If any of the compared details do not match, I want the row to be highlighted.
This is what I have so far:
Code:
For i = 1 to intRows - 1
blnSame = True
For j = 2 to intColumns - 1
if Data(i, 1) <> Data(i, j) Then
blnSame = False
End if
Next
'Set alternating row colors
If blnSame = False Then
'Different, highlight blue
color="#B3BCFF"
ElseIf i mod 2 = 0 Then
' Gray row
color="#DDDDDE"
Else
' White row
color="#FFFFFF"
End if
I think I'm missing something, but I'm not sure what... Any help would be greatly appreciated.
-Skye.