All,
I am requesting if anyone can help me in creating a macro that will insert blank rows beneath rows containing values in cells. I am a novice learner in creating macros and I appreciate your assistance in this matter. Please view Excel file on attachment name Analysis to view data and step by step instructions in visual form and text boxes. The original list of data is located on the Main worksheet while the step by step instructions on what I am trying to achieve is located on Step 1, Step 2, and Step 3 worksheets. Below is a macro I attempted to create but it only enters rows beneath the value Assets in Column B. I appreciate all the help you all can provide. If you need any questions please send me a reply. Thank you.
Sub InsertRows()
Dim i As Long
i = 2
Do Until Trim(Cells(i, 2)) = ""
If Cells(i, 2) = "Asset" Then
Cells(i, 2).EntireRow.Insert
i = i + 2
Else
i = i + 1
End If
Loop
End Sub
Bookmarks