Examples:
The following VBA example checks whether there is valid data in the Clipboard. If there is valid data present, it is pasted into the active layer. If there is no valid data in the Clipboard, a message displays in a message box.
Sub ClipboardValid()
If Clipboard.Valid Then
ActiveLayer.Paste
Else
MsgBox "There is no valid data currently in the Clipboard."
End If
End Sub