Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using the following code to try and find a "1" in column "R". Whenever I
find one I want to insert a row. With the code I have here I find the "1" in row "4" but it inserts a row at row "48", then row "50, etc. What do I need to do to insert a row at rows "4", "15", LoopCol2 = 1 LoopRow2 = 4 While Not IsEmpty(Worksheets("Break & Lunch Schedule").Cells(Looprow2, LoopCol2))etcf. With wsPh If wsPh.Range("r" & Looprow2 + 0) = 1 Then wsPh.Range("r" & Looprow2).End(xlDown).Select Selection.EntireRow.Insert Looprow2 = Looprow2 + 1 ' ETop = ETop + 1 Else Looprow2 = Looprow2 + 1 ' ETop = ETop + 1 End If End With Wend |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert rows in a worksheet that do not change adjoining rows | Excel Discussion (Misc queries) | |||
How do i insert blank rows between data that is thousands of rows | Excel Discussion (Misc queries) | |||
Insert rows: Formats & formulas extended to additonal rows | Excel Worksheet Functions | |||
How do I insert blank rows between rows in completed worksheet? | Excel Discussion (Misc queries) | |||
How do i insert of spacer rows between rows in large spreadsheets | Excel Discussion (Misc queries) |