Can't paste (Error 31007)

The Clipboard doesn't contain a valid OLE object.

This error also occurs when you copy an OLE object to the Clipboard and then try to paste the object back to the same OLE container control.

The PasteOK property returns True when an object can be pasted from the Clipboard.

Note that when you copy an OLE object to the Clipboard (set Action = 4) and then delete the object (set Action = 10), the object on the Clipboard is also deleted.