Cowichandave
New Member
- Joined
- Jan 18, 2009
- Messages
- 47
- Office Version
- 2016
Here is the code I have so far.
The result is this:
I want it to look like below.. Column C is the target for inserting blank rows. I need 3 blank rows without any formatting including conditional formats. Column c may number as high as 40.
VBA Code:
ActiveCell.EntireRow.Resize(3).Insert Shift:=xlDown
For lRow = Cells(Cells.Rows.Count, "C").End(xlUp).Row To 2 Step -1
If Cells(lRow, "C") <> Cells(lRow - 1, "C") Then
Rows(lRow).EntireRow.Insert
Rows(lRow).EntireRow.Insert
Rows(lRow).EntireRow.Insert
End If
Next lRow
The result is this:
I want it to look like below.. Column C is the target for inserting blank rows. I need 3 blank rows without any formatting including conditional formats. Column c may number as high as 40.
Last edited by a moderator: