Write merged cells on modified(existing) worksheet

Cells merging wasn't working when editing an existing worksheet.