So I have this sheet that automatically seperates the data byt column D value then uses that value to create a formatted "Header" for each group and places the name from D into the newly created header. My question is is it possible to add the sum of G in the header as well?
Heres my code
This is what it looks like after running and what I would like it to look like:
https://www.dropbox.com/s/p3ug067dt0...Test.xlsm?dl=0
Heres my code
Code:
Sub IRIPS()
Dim lRow As Long
For lRow = Cells(Cells.Rows.Count, "E").End(xlUp).Row To 3 Step -1
If Cells(lRow, "E") <> Cells(lRow - 1, "E") Then
With Cells(lRow, 1).Resize(, 7)
.Insert xlDown
With .Offset(-1)
.MergeCells = True
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.Value = Cells(lRow + 1, "E") & "- "
.Interior.ThemeColor = xlThemeColorLight1
With .Font
.Name = "3M Circular TT Bold"
.Size = 12
.ThemeColor = xlThemeColorDark1
End With
End With
End With
End If
Next lRow
End Sub
This is what it looks like after running and what I would like it to look like:
https://www.dropbox.com/s/p3ug067dt0...Test.xlsm?dl=0
Last edited by a moderator: