Hello One and All
I am using Excel 2003
I have Data in column A to E
I require a VBA macro that will find the last Row in column A that has no data and then delete any data in all the other columns from the blank row in column A
Sub MyMacro()
Rows(Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Row).EntireRow.ClearContents
End Sub
Sub MyMacro()
Dim myFirstRow As Long
Dim myLastRow As Long
' First first blank row in column A (assuming not at very top)
myFirstBlankRow = Range("A1").End(xlDown).Offset(1, 0).Row
' First last row on sheet
myLastRow = Range("A1").SpecialCells(xlLastCell).Row
' Delete all rows start with first blank cell in column A to end of sheet
Rows(myFirstBlankRow & ":" & myLastRow).EntireRow.Delete
End Sub