Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting alternative rows
I have region containing roughly 100 rows. I would like to create a macro
that deletes every other row within the region. I would like to start by deleting row 2 & then continue to do so for the rest of the region. Please advise. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting alternative rows
try this
Sub deleteeveryotherrow() For i = Cells(Rows.Count, "a").End(xlUp).Row To 2 Step -2 Rows(i).Delete Next i End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Curt J" <Curt wrote in message ... I have region containing roughly 100 rows. I would like to create a macro that deletes every other row within the region. I would like to start by deleting row 2 & then continue to do so for the rest of the region. Please advise. Thanks |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting alternative rows
Perfect, thanks for the help Don.
"Curt J" wrote: I have region containing roughly 100 rows. I would like to create a macro that deletes every other row within the region. I would like to start by deleting row 2 & then continue to do so for the rest of the region. Please advise. Thanks |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Deleting alternative rows
Glad to help
-- Don Guillett Microsoft MVP Excel SalesAid Software "Curt J" wrote in message ... Perfect, thanks for the help Don. "Curt J" wrote: I have region containing roughly 100 rows. I would like to create a macro that deletes every other row within the region. I would like to start by deleting row 2 & then continue to do so for the rest of the region. Please advise. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Coloring Alternative Rows only if data is there | New Users to Excel | |||
Macro for deleting rows and serialising the remaing rows | Setting up and Configuration of Excel | |||
How to delete or copy alternative rows/columns at a time? | Excel Discussion (Misc queries) | |||
Help!! I have problem deleting 2500 rows of filtered rows!!!! | Excel Discussion (Misc queries) | |||
deleting hidden rows so i can print only the rows showing?????? | Excel Worksheet Functions |