Examples:
The following VBA example checks whether there is any data in the Clipboard. If there is data present, it is pasted in the active layer. If there is no data in the system Clipboard, a message displays in a message box.
Sub ClipboardEmpty()
If Not Clipboard.Empty Then
ActiveLayer.Paste
Else
MsgBox "There is no data in the Clipboard."
End If
End Sub