Overwrite with format

Refer to the following example code to see how to copy format when expanding data using overwrite mode.