Place the code below at the very top below...
Option Compare Database
Option Explicit
Function ClearClipboard() As Boolean
On Error GoTo err_ClearClipboard
' Comments : Clears the clipboard
' Parameters: None
' Returns : True if successful, False otherwise
'
Dim lngTemp As Long
If clt_OpenClipboard(0&) <> 0 Then
lngTemp = clt_EmptyClipBoard()
lngTemp = clt_CloseClipboard()
End If
ClearClipboard = True
exit_ClearClipboard:
Exit Function
err_ClearClipboard:
ClearClipboard = False
Resume exit_ClearClipboard
End Function