Posted 1 May 2023, 3:34 am EST
Hi,
I try to implement the following scenario: user selects some range and copies data to clipboard (or maybe clipboard contains data from another spreadsheet application)
After that user selects some cell and triggers paste. The target range contains some non-modifiable/locked cells. I need to skip data in the source range that correspond to the locked cells in the target range and continue pasting from the next cell.
Example: clipboard contains data of 4 cells. In the target range 1s cell is editable, next two cells are locked, 4th is editable.
I want to paste data from the clipboard to the 1st cell, skip data of the 2nd and 3rd cell and paste 4th source cell data into 4th destination cell
I can do it by manually iterating over clipboard data in ClipboardPasting event and changing cell values individually but your default processing also recognises data types (like numbers and dates) and pastes them correctly and I would like to preserve this.
Thank you