I have this excel spreadsheet where my macro runs and ends on a certain cell in A column. What my macro is supposed to do from there is delete starting from that specific row I landed on all the way down to row 73.
I have tried a few different things but I have had no luck so far.
Step by step (Example):
- Macro starts [macro code] and ends on cell A23 (A23 is a relative reference and will therefore not always be A23)
- The code starts deleting rows starting from the row of the ActiveCell
- The code stops deleting when he reaches row 73 (73 included in the deleting process.Note that the 73 will never change and is not relative)
Something I tried but it didn't seem to work.
Sub RowDel()
ActiveCell.Range("ActiveCell.Adress:A73").Select
Selection.EntireRow.Delete
End Sub