Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's the code
Set WshD = ThisWorkBook.WorkSheets("index") Set RngD = WshD.Range("M65536".End(xlUP) RngD = RngD.Offset(0,-12).Resize(11,12).Delete I've also used Select in place of Delete above and then added Selection.Delete on the next line. I used the Offset before resize since I read in this forum that Resize doesn't like negative values. How do I delete the newly selected range? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare a selected Range with a Named range and select cells that do not exist | Excel Programming | |||
Delete a selected area from a non-contiguous range | Excel Programming | |||
trying to delete selected range with macro | Excel Programming | |||
delete every nth row in selected range | Excel Discussion (Misc queries) | |||
Delete non-selected rows | Excel Programming |