Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    2

    Unanswered:

    Hello everybody!

  2. #2
    Join Date
    Apr 2006
    Posts
    2
    Does anyone know how can I clear the Office clipboard from VBA?

  3. #3
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •