Displays a standard OLE dialog allowing the user to choose whether to embed or link the OLE object on the clipboard when pasting it in the specified control. Embedding is the equivalent of calling the Paste function, and linking is the same as calling PasteLink.
OLE controls
olecontrol.PasteSpecial ( )
Argument |
Description |
---|---|
olecontrol |
The name of the OLE control into which you want to paste the object on the clipboard |
Integer. Returns 0 if it succeeds and one of the following values if an error occurs:
1 User canceled without selecting a paste option
-1 No data found
-9 Other error
If ole2control is null, PasteSpecial returns null.