Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This should do what you want...
Worksheets("Sheet1").Cells(Rows.Count, "J").End(xlUp).Offset(-2).Resize(3).EntireRow.Delete -- Rick (MVP - Excel) "Lotto" wrote in message ... I want to go to the end of column J, move up two rows, and delete the last three rows. I'm just not sure how to get the delete range to vary as I need it to. See code below: Range("J2").Select Selection.End(xlDown).Offset(-2, 0).Select Rows("160:162").Select Selection.Delete Shift:=xlUp End Sub Thanks in advance for your help! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A1:B(xlDown)? | Excel Programming | |||
End(xlDown) not working? | Excel Discussion (Misc queries) | |||
xlDown going further than data | Excel Programming | |||
End(xlDown) won't work | Excel Programming | |||
End(xldown) not always going to last cell? | Excel Programming |