3 replies
by dklippert
Try one of these:
Clipboard.clear
Application.CutCopyMode = False
----------------------
Private Declare Function CloseClipboard Lib "user32" () As Long
Private Declare Function APIEmptyClipboard Lib "user32" _
Alias "EmptyClipboard" () As Long
Private Declare Function OpenClipboard Lib "user32" _
(ByVal hwnd As Long) As Long
Private Declare Function GetActiveWindow Lib "user32" () As Long
Public Function EmptyClipboard() As Boolean
Dim hwnd As Long
Dim hClip As Long
hwnd = GetActiveWindow()
Call OpenClipboard(hwnd)
hClip = APIEmptyClipboard()
Call CloseClipboard
EmptyClipboard = (hClip <> 0)
End Function
--------------------
by heersthm
by heersthm
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending