+ Reply to Thread
Results 1 to 4 of 4

Clear the clipboard

Hybrid View

  1. #1
    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 :
    Application.CutCopyMode = False
    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.

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

+ 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