Hello,
I am trying to use VBA to insert a new row. I have conditional formatting for a group of my cells (M19:FL30), and I want the new line to be inserted within this group of cells. Currently, I have this, which works fine:
Sub new_line()
Rows("8:8").Select
Selection.Copy
Rows("27:27").Select
Selection.Insert Shift:=xlDown
Application.CutCopyMode = False
End Sub
As you can see, I have copied row 8 and pasted it into row 27. However, row 8 has different conditional formatting than my group of cells (M19:FL30). Is there a way to combine the two so that my inserted row has the coniditional formatting of both row 8 and the group of cells (M19:FL30)?
Bookmarks