All I'm trying to do is write up a program that will scan a list of numbers (essentially) and then will shade the entire row that possesses the lowest number. I've got it so that it will locate and report the name of the user with the lowest stats, but the shading part is really throwing me for a loop. My code below. Danke to anyone who can instruct me as to the probably 1 or 2 lines I'm missing.
[VBA] Sub lowest2()
Dim rw As Long
Dim lowestvalue As Double
Dim fname As String
Dim lname As String
rw = 3
lowestvalue = Cells(rw, 5)
Do Until Cells(rw, 1).Value = ""
If Cells(rw, 5).Value < lowestvalue Then
lowestvalue = Cells(rw, 5)
fname = Cells(rw, 1)
lname = Cells(rw, 2)
End If
rw = rw + 1
Loop
MsgBox "The lowest stat tally is " & fname & " " & lname
End Sub
[/VBA]
* This highlighting will be A-G of the row in question.