Examples:
The following VBA example checks whether the Clipboard is empty. If data is present, it is pasted into the current document. If no data is present, a message displays in a message box.
Sub ClipboardData()
If Not Clipboard.Empty Then
ActiveLayer.Paste
Else
MsgBox "There is no data in the clipboard."
End If
End Sub