+ Reply to Thread
Results 1 to 6 of 6

Large amount of data on clipboard message

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    204

    Large amount of data on clipboard message

    Hi

    I'm importing (copying and pasting) a large amount of data from one workbook to another using VBA. When I close the workbook I copied from I get a message that there is a large amount of data on the clipboard click yes to keep it or no to delete it.

    How do I turn that message off or clear the clipboard before closing so my VBA code doesn't get interrupted?

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Large amount of data on clipboard message

    To kill messages :- Application.DisplayAlerts = false
    Don't forget to reset to TRUE at the end of your code
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Large amount of data on clipboard message

    Thanks Andy

    When do I reset it. After closing the file or only at the end of the code?

  4. #4
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Large amount of data on clipboard message

    Turning it back on after closing the file works. The message is not displayed anymore. Thanks.

  5. #5
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Large amount of data on clipboard message

    Your welcome ... Can you mark the thread solved please - It's under the thread drop down

  6. #6
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: Large amount of data on clipboard message

    Just for interest sake; How do I clear the clipboard?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1