Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to delete bunch of empty rows, which are regularly spaced in my worksheet, using "FOR-NEXT" loop. But, it is giving me error. What I my I doing wrong here. Thanks. Sub Macro1 () For i = 1 To 100 n = 3 * i - 1 ActiveSheet.Rows("n, n + 1").Select Next Selection.Delete Shift:=xlUp End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula/Macro to delete rows that do not meet criteria from a list? | Excel Worksheet Functions | |||
If formula result is false, how do I auto-delete that rows? | Excel Worksheet Functions | |||
How to delete rows when List toolbar's "delete" isnt highlighted? | Excel Worksheet Functions | |||
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below | Excel Programming | |||
Delete #N/A rows Formula | Excel Programming |