+ Reply to Thread
Results 1 to 4 of 4

Clear the clipboard

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Clear the clipboard

    Hi All

    I'm trying to clear the clicpboard using VBA so i don't get messages asking me what to do.

    is this possible and if so how?

    i could simply turn all alerts off but i rather not

    thanks all
    Last edited by Macdave_19; 11-24-2008 at 08:37 AM.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    To clear the Excel clipboard,
    Please Login or Register  to view this content.
    Clearing the Office clipboard require Windows API.

    Why not suppress alerts?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Macdave_19
    Quote Originally Posted by Macdave_19 View Post
    I'm trying to clear the clicpboard using VBA so i don't get messages asking me what to do.
    The clipboard is a Windows object, so clearing it via VBA requires the use of APIs. Chip Pearson shows how to do it here, if you're still reading (don't worry - it's only a little routine)

    Alternatively, you can use this instruction :
    Please Login or Register  to view this content.
    It will stop the "marching ants" and stop VBA bugging you with alerts, but it won't clear the clipboard.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  4. #4
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Cheers

    thankls guys that solves the problem of me getting a prompt when the workbook is closed

+ 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