I have a problem with my code. In the data there are 60 rows, and in column T, there are 57 rows which have value i.e that are not blank. Cells 58,59,60 are blank. I am trying to find the last row for Column T. Whenever I run the code, it always gives me 60 instead of 57.
Here is my code
Dim lastrow As Long
lastrow = Cells(Rows.Count, 20).End(xlUp).Row
MsgBox "The Last Row of Data for Column T " & lastrow
Range("B2:T" & lastrow).SpecialCells(xlCellTypeVisible).Select
With Selection.Font
.Color = -16776961
.TintAndShade = 0

