Try this
Sub DeleteExtraRows()
Dim LastRowColA As Long, LastRowOnSheet As Long
LastRowColA = Range("A" & Rows.Count).End(xlUp).Row
LastRowOnSheet = ActiveSheet.UsedRange.Rows.Count
Rows(LastRowColA + 1 & ":" & LastRowOnSheet).Delete
End Sub
Hope this helps.
If you need any further information, please feel free to ask further
However
If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
Also
If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
Bookmarks