How to delete multiple rows without a loop in Excel VBA

This will delete row numbers m to n passed through the function

Sub Delete_Multiple_Rows (m as Integer, n as Integer) 

    Rows(m & ":" & n).EntireRow.Delete 

End Sub

Leave a Comment