billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Evening all
Attempting to modify this script which highlights minimum values in columns 2 to 10 & rows indicated in the "RW" array
The modification would highlight the 3 minimum values within the row ranges.
Thank you guys...
Attempting to modify this script which highlights minimum values in columns 2 to 10 & rows indicated in the "RW" array
The modification would highlight the 3 minimum values within the row ranges.
Thank you guys...
Code:
Dim Rng As Range, r As Double, Col As Long, Rw As Variant, n As Long
For Col = 2 To 10
Rw = Array(6, 17, 19, 30, 32, 40, 42, 50, 52, 58, 60, 66, 68, 71)
'The range of each borough
For n = 0 To UBound(Rw) Step 2
Set Rng = Range(Cells(Rw(n), Col), Cells(Rw(n + 1), Col))
r = Application.Min(Rng)
For Each Min In Rng
If Min.Value = r Then
Min.Interior.Color = RGB(253, 249, 215)
Min.Font.Color = RGB(192, 0, 0)
Min.Font.Bold = True
End If
Next Min
Next n
Next Col
Last edited: