I already have a Macro to insert blank rows when the value in columns C and G change, but now I want to insert a blank row with a shaded background when the value in Column A changes while ignoring other blank rows. Please help!
VBA Code:
Sub BLANKS_SUMMARY2()
Dim ws As Worksheet
Dim lr As Long
Dim i As Long
Set ws = Worksheets("Logged Units Report")
lr = ws.Range("C" & Rows.Count).End(xlUp).Row
For i = lr - 1 To 2 Step -1
If ws.Range("C" & i).Value <> ws.Range("C" & i + 1).Value _
Or ws.Range("G" & i).Value <> ws.Range("G" & i + 1).Value Then
ws.Range("C" & i + 1).EntireRow.Insert
End If
Next i
End Sub