Empty Clipboard Excel Using Windows Empty Clipboard function:-
Public Declare Function OpenClipboard Lib "user32" (ByVal NewOwner As Long) As Boolean
Public Declare Function EmptyClipboard Lib "user32" () As Boolean
Public Declare Function CloseClipboard Lib "user32" () As Boolean
Sub ClearClipboard()
' call ClearClipboard() from your other VBA macro to clear/empty Windows Clipboard
If OpenClipboard(0) Then
EmptyClipboard
CloseClipboard
End If
End Sub
No comments:
Post a Comment