P paradise Member Feb 6, 2019 #1 Hi, I am looking for a code that will find a last row and would add 'x' 1 row below to left hand side.
Hi, I am looking for a code that will find a last row and would add 'x' 1 row below to left hand side.
Belleke Well-Known Member Feb 6, 2019 #2 Hi, Try this. Code: Sub Belle() With ActiveSheet iRow = .Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1 .Cells(iRow, 1).Value = "X" End With End Sub
Hi, Try this. Code: Sub Belle() With ActiveSheet iRow = .Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row + 1 .Cells(iRow, 1).Value = "X" End With End Sub
P paradise Member Feb 6, 2019 #3 It did not worked.It should have been E13 instead of A13 as last row data is F13. I have highlighted with Green for correct & red for wrong result Attachments Last Row.xlsm 10.2 KB · Views: 4
It did not worked.It should have been E13 instead of A13 as last row data is F13. I have highlighted with Green for correct & red for wrong result
AlanSidman Well-Known Member Feb 6, 2019 #4 Look here:-->https://www.thespreadsheetguru.com/...to-find-the-last-row-or-last-column-using-vba