I donβt know exactly how you insert your lines, but if you enter a line below the existing line, it will default to the formatting of the line above it, at least when you use this type of syntax:
Range("B2").EntireRow.Offset(1, 0).Insert
In this example, he will insert a line below B2, and the format (say, line B2 is highlighted in yellow) will also be yellow. This may be due to the fact that this type of insert determines exactly which row to insert.
source share