Posted 8 September 2017, 3:05 pm EST
I'm copying a range of cells in order to paste all the cell formats to new cells that are inserted in a loop.
The code is executed always in the same way (it's a report that is build always with same data). The problem is that sometimes I get this error when using "ClipboardCopy":
<b> "Requested Clipboard operation did not succeed" </b>
this is the code I'm using
.AddSelection(row1, col1, 1, last_col - col1 + 1)
crange = fp.ActiveSheet.GetSelection(0)
Should I create a kind of loop to wait and retry several times?