question610
New Member
- Joined
- Jul 3, 2017
- Messages
- 29
I want to delete all the cells from Row 2 down for column 1 and 2. What is the best way to do it?
I tried this but the lastRow is simply the last row number which does not help because I would delete the first row too. I need something like offset...what's the best way?
I tried this but the lastRow is simply the last row number which does not help because I would delete the first row too. I need something like offset...what's the best way?
Code:
lastRow = Range("B2").End(xlDown).Row '
Set DeleteRange = ActiveSheet.Range("A2:A" & lastRow, "B2:B" & lastRow)