That InsertCopy method will copy a single column multiple times. In other words, it’s copying just the column “A” two times on the targetIndex location.
Nevertheless, try using CellRange.CopyTo instead, like this:
I found my problem. That’s what i have in my template
D1 E1 distinct
D2 E2 merged
D3 E3 merged
The entire row 4 is merged for another usage
D5 E5 distance
I tried to copy D1 to E5 in one instruction => Destination range can’t overlap with existing merged range.
But if i copy D1 to E3 and then copy D5 E5 it works.