JumboCactuar
Well-known Member
- Joined
- Nov 16, 2016
- Messages
- 788
- Office Version
- 365
- Platform
- Windows
Hi,
i have this code for finding last used row in a table:
This works great except for when the table has no data it outputs this error:
Anyone know why?
i have this code for finding last used row in a table:
Code:
Sub LastTableRow()
lrow = Range("Table5").Columns(1).Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
Debug.Print "lrow :" & lrow
End Sub
This works great except for when the table has no data it outputs this error:

Anyone know why?