I'm getting an error stating 'Unable to get Rank function...etc'
Is my syntax incorrect? My variable 'howmany' stores a value of 146, so it shouldn't be resulting from that. I'm stumped here.
For Each cell In Range("K4", Range("K" & Rows.Count).End(xlUp))
cell.Formula = Application.WorksheetFunction.Rank(Range("J" & cell.Row), Range("J4:J" & howmany))
If cell.Offset(, -1).Value <= 0.6 Then
With cell.Interior
.Pattern = xlSolid
.PatternThemeColor = xlThemeColorAccent6
.ThemeColor = xlThemeColorDark1
.TintAndShade = -0.249977111117893
.PatternTintAndShade = 0.599993896298105
End With
End If
Next
Bookmarks