+ Reply to Thread
Results 1 to 3 of 3

Clear Clipboard on cell selection

Hybrid View

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Clear Clipboard on cell selection

    I am trying to stop users of a spread sheet copying and pasting into the worksheet from external sources which is stuffing up the formatting, Ihave tried Application.CutCopyMode = False on cell selection which works if the data was copied from somewhere on the workbook. When I copy from an external source it does not disable the paste function.

    So what I need to do is clear the clipboard when a cell is selected on my worksheet no matter where it was copied from.

    Any thoughts or assistance with this would be greatly appreciated.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Clear Clipboard on cell selection

    You would need to put that into a ThisWorkbook event as well.
    Private Sub Workbook_Activate()
        Application.CutCopyMode = False
    End Sub

    Do some Googling on "Excel How to Disable Cut, Copy and Paste"... there are a lot more to this.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    57

    Re: Clear Clipboard on cell selection

    Thanks JBeaucaire's I will give that a go.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Clear the clipboard
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2008, 08:38 AM
  2. [SOLVED] Macro to clear Clipboard
    By gj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2006, 07:03 PM
  3. [SOLVED] What VBA activitys clear the clipboard?
    By Marie J-son in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2006, 04:05 PM
  4. Clear clipboard contents
    By Cordobes in forum Excel General
    Replies: 4
    Last Post: 11-21-2005, 10:45 PM
  5. VBA Clear clipboard
    By NickH in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2005, 02:10 PM
  6. Clipboard clear
    By Reuel in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-24-2005, 01:05 PM
  7. [SOLVED] Clipboard Clear API error
    By G-Force in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-18-2005, 04:05 PM
  8. Do you wish to clear clipboard memory?
    By WendyUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2005, 10:06 AM

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