Option Explicit
Public Declare Function EmptyClipboard Lib "user32" () As Long
Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function CloseClipboard Lib "user32" () As Long
Public Sub ClearClipboard()
Call OpenClipboard(0)
Call EmptyClipboard
Call CloseClipboard
End Sub