Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Rows().Delete
How do I delete n rows after the row of the current cell?
Example: current cell = A17 n = 3 How do I delete rows 18, 19 and 20? This is what I have, but it's wrong... rows(activecell.row + 1:activecell.row + intNum).delete (xlshiftup) Help Please Hafeez Esmail |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Rows().Delete
Hi Hafeez,
Something like this would work: ActiveCell.Offset(1, 0).Resize(3, 1).EntireRow.Delete shift:=xlUp -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] Hafeez Esmail wrote: How do I delete n rows after the row of the current cell? Example: current cell = A17 n = 3 How do I delete rows 18, 19 and 20? This is what I have, but it's wrong... rows(activecell.row + 1:activecell.row + intNum).delete (xlshiftup) Help Please Hafeez Esmail |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hpw do I delete multiple empty rows found between filled rows? | Excel Worksheet Functions | |||
How to Delete empty rows in excel in b/w rows with values | Excel Worksheet Functions | |||
Cut filtered rows, paste into next empty row of new sheet, and delete cut rows | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
delete empty rows between rows with text | Excel Discussion (Misc queries) |