Clipboard Oddities
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Clipboard Oddities

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi guys,
    I used Excel vba to control a 'VBA-enabled' software... basically what I am doing is a fast copy-paste operation...
    My problem is:
    - Sometimes I get a message - something like, "Excel cannot perform the requested operation because the clipboard is empty" - even though the method copy is called before the paste code..

    Question:
    - Is there a way using vba to check the contents of the clipboard, wether empty or full... and is there a way to programatically empty the clipboard.
    - If there isn't, is there a Win32 API call I can explore??

    Thanks guys..

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Bogota, Colombia
    Posts
    11,959
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    To delete:

    Application.CutCopyMode = False

    or

    Private Declare Function EmptyClipboard Lib "user32" () As Long

    Regards,

    Juan Pablo González
    http://www.juanpg.com

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Cheers...

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com