run-time error 1004
1 TopicVBA // run-time error 1004: // Last Row
Hi. When I am working with a Function in order to find the Last Row, the excel prompt a run-time error 1004: The code: Function LastRow() As Integer Dim endRow% endRow= Sheets(1).Cells(Rows.Count, 2).End(xlUp).Offset(1, 0).Row LastRow =endRow End Function Thanks. Mauricio M.Solved6.7KViews0likes3Comments