So I am using this code to seperate my data so that each line with the sAME NAME IN COLUMN d ARE TOGETHER BUT A MERGED GROUP OF CELLS ARE INSERTED BEFORE EACH NEW NAME. aFTER THE CELLS ARE INSERTED THE ROW IS MODIFIED AND ALL WORKS PERFECT SO FAR.
What I'm still needing some help with is once I insert the cells and merge and format them I want to get the data from column D in the row below the new merged range and paste it in as Text in the new merged range.
Ideas?
Thanks in advance for any help or guidance.
What I'm still needing some help with is once I insert the cells and merge and format them I want to get the data from column D in the row below the new merged range and paste it in as Text in the new merged range.
Ideas?
Thanks in advance for any help or guidance.
Code:
Sub IRCV()
Dim lRow As Long
For lRow = Cells(Cells.Rows.Count, "D").End(xlUp).Row To 3 Step -1
If Cells(lRow, "D") <> Cells(lRow - 1, "D") Then Cells(lRow, 1).Resize(, 10).Select: Selection.Insert xlDown
Selection.MergeCells = True
With Selection.Interior
.ThemeColor = xlThemeColorLight1
End With
With Selection.Font
.Name = "3M Circular TT Bold"
.Size = 12
.ThemeColor = xlThemeColorDark1
End With
Next lRow
End Sub