Posted 21 February 2018, 8:07 pm EST
Hello,
I understood that when the target range is smaller than the source range the paste behavior will fail and I can override this by setting the ‘allowExtendPasteRange’ to true.
Now, the problem is that ‘isProtected’ property on the sheet is set to true, so that I can have both, locked and unlocked cells. When ‘isProtected’ is set to true, ‘allowExtendPasteRange’ seems to have an issue (although I only copy & paste a range of unlocked cells) and the behavior fails.
If I set the ‘isProtected’ property to false, ‘allowExtendPasteRange’ works as it should but all the cells are unlocked.
What can I do to have both locked and unlocked cells and to be able to paste and extend the target range accordingly?
Thanks,
Mircea