Hi all, I have the code below, where i want to insert an empty row, where there is data in column F, starting at F6 (info above that is retained header info). The code below just causes excel to freeze up. I would appreciate any assistance in figuring out what I did wrong here! I am almost certain it's the c.EntireRow.Insert that is causing me an issue, I just don't know what the correct solution is?
VBA Code:
Sub AddRows()
Dim c As Range, sh1 As Worksheet
Set sh1 = Sheets("Pick List")
For Each c In sh1.Range("F6", sh1.Cells(Rows.Count, "F").End(xlUp))
If c.Value <> "" Then
c.EntireRow.Insert
End If
Next
End Sub