Im simply trying to add empty rows below each text in bold font in column A
It seems to be doing what i need but once i actually use "insert" my excel times out and freezes.
I probably just need to add rows from the bottom up instead, not sure tho.
+ screwed up the title with above/below but it doesnt change a whole lot for the code i suppose
It seems to be doing what i need but once i actually use "insert" my excel times out and freezes.
I probably just need to add rows from the bottom up instead, not sure tho.
+ screwed up the title with above/below but it doesnt change a whole lot for the code i suppose
VBA Code:
Sub AddBufferBelowBold()
Dim rngA As Range
Dim vCell As Range
lRow = Range("A" & Rows.Count).End(xlUp).Row
Set rngA = Range("A12:A" & lRow)
For Each vCell In rngA
If vCell.Font.Bold = True Then
vCell.Offset(1).EntireRow.Select 'insert
End If
Next vCell
End Sub