It looks like you are traversing down column F, so Cells(i, F).Value > Cells(i + 1, F).Value Then must be written Cells(i, "F").Value > Cells(i + 1, "F").Value Then (notice the quotation marks around the F's).
If you want cell F3 to hold the value that meets the "greater than" test then use: Cells(3,"F").Value = Cells(i,"F").Value
Also, you should always use Option Explicit at the top of your module to force variable declarations. Since you did not, the VB compiler sees the F in Cells(i,F) as a variable and not a column specifier and sets its value to zero. Because there is no such thing as column zero, those lines will cause the macro to crash.
Bookmarks