Open adswafford opened 5 years ago
Verified: when copying cells in from another excel spreadsheet WITH their formatting, the receiving cells in qiimp template become write-protected, with following message:
I am 98% sure that the explanation in the accepted answer at https://superuser.com/questions/392528/why-does-pasting-into-an-unprotected-cell-in-excel-protect-it is the correct DIAGNOSIS for why we are seeing this behavior:
It is actually expected behavior (well expected by Microsoft, not necessarily by users) which is the good news. .... When you paste in a piece of formatted text the cell gets given the "Normal" style and then has the required formatting layered on top. The "Normal" style by default has protection set to locked. So this is why it is being applied.
The overall formatting on the qiimp metadata sheet is protected, so apparently when you paste in formatted text (even to a cell that was specifically set as unprotected) it gets set back to protected, hence the issue.
Will take a bit more thought to figure out how to correct the issue, as the work-around in the referenced post is not available through the xlsxwriter api as far as I can tell.
Files to reproduce attached.