Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello All,
I am using Office XP and have this macro from the NG. I have a long list of data in Column A. This macro inserts a blank row (after) looking up the text in A1 viz "Membership " How can I change it to insert a blank row (before) the word Membership in all the rows. Sub InsertRows() Dim cRows As Long Dim i As Integer For i = Cells(Rows.Count, "A").End(xlUp).Row To 1 Step -1 If Left(Cells(i, "A"), 11) = "Membership " Then Cells(i + 1, "A").EntireRow.Insert End If Next i End Sub TIA Rashid |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text to Rows and then Insert Blank Rows | Excel Discussion (Misc queries) | |||
Insert rows macro. | Excel Discussion (Misc queries) | |||
asking again, macro to insert rows | Excel Worksheet Functions | |||
Insert Rows Macro | Excel Programming | |||
macro to insert rows. | Excel Programming |