If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Clear Clipboard programmatically

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-06, 06:14
Valica Valica is offline
Registered User
 
Join Date: Apr 2006
Posts: 2
Hello everybody!
Reply With Quote
  #2 (permalink)  
Old 04-10-06, 06:14
Valica Valica is offline
Registered User
 
Join Date: Apr 2006
Posts: 2
Does anyone know how can I clear the Office clipboard from VBA?
Reply With Quote
  #3 (permalink)  
Old 05-02-06, 04:09
Fazza Fazza is offline
Registered User
 
Join Date: Feb 2006
Posts: 113
I just googled and found this. Cheers, Fazza

Code:
Declare Function CloseClipboard Lib "user32" () As Long
Declare Function EmptyClipboard Lib "user32" () As Long
Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long

Sub ClearClipboard()
    OpenClipboard 0&
    EmptyClipboard
    CloseClipboard
End Sub
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On