FryGirl
Well-known Member
- Joined
- Nov 11, 2008
- Messages
- 1,364
- Office Version
- 365
- 2016
- Platform
- Windows
Need to find the last row in column C, but find the last filled cell and not just the last row.
In column C there is a formula down to row 7, but based on the formula in column C there are only results down to row 3. With the macro below the Msgbox returns 7 but need to return 3.
In column C there is a formula down to row 7, but based on the formula in column C there are only results down to row 3. With the macro below the Msgbox returns 7 but need to return 3.
Code:
Sub findlast()
Dim lr As Long
lr = Range("C" & Rows.Count).End(xlUp).Row
MsgBox lr
End Sub