I want to find last used cells
My code not working ..![]()
Dim LastRow LastRow = sheet.Cells.Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=Microsoft.Office.Interop.Excel.XlSearchDirection.xlPrevious) MsgBox(LastRow)
Please help me
I want to find last used cells
My code not working ..![]()
Dim LastRow LastRow = sheet.Cells.Find(What:="*", SearchOrder:=xlByRows, SearchDirection:=Microsoft.Office.Interop.Excel.XlSearchDirection.xlPrevious) MsgBox(LastRow)
Please help me
what is that code meant to do?
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
I'm using Find Command. I want to search backwards by Rows but my code not working
Try this maybe.
![]()
Dim lr As Long lr = Cells.Find(What:="*", SearchOrder:=xlRows, _ SearchDirection:=xlPrevious, LookIn:=xlFormulas).Row
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks