+ Reply to Thread
Results 1 to 7 of 7

Disable Copy and Paste from Clipboard Buttons

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Disable Copy and Paste from Clipboard Buttons

    I am looking for a way to prevent all copying and pasting in a workbook and potentially just a worksheet if possible.

    I can't use protection as the main area I want to prevent the copy and paste is with data validation drop down boxes with conditional formatting, so the user needs to be able to select them to use the drop down.

    I don't want the user to be able to copy and paste them as the pasting of the conditional formatting seems to duplicate the formatting which complicates the formatting and eventually bogs things down (worksheet has over a thousand of these cells).

    I have seen quite a few solutions that prevent Cntrl C and V type copy and paste but nothing seems to prevent the use of the copy and paste buttons on the menu ribbon

    Is it possible to prevent copy and paste from all sources ?

    Cheers

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Disable Copy and Paste from Clipboard Buttons

    Andy has a very good solution, see if it helps you
    http://www.excelforum.com/excel-prog...bon-excel.html
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Registered User
    Join Date
    08-07-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Disable Copy and Paste from Clipboard Buttons

    Thanks John

    This seems to work great for the whole workbook although it doesn't disable the "disable" when you close the book, so once you have run it all excel workbooks have this functionality disabled.

    What code should I add to make it revert to full functionality when the workbook is closed ?

    Also I assume seeing as it effects the ribbon it can only work at a workbook level and cannot be modified to work only on a specific worksheet ?


    Cheers
    Last edited by Durobell; 08-08-2012 at 06:38 AM.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable Copy and Paste from Clipboard Buttons

    In the specific sheet
    Please Login or Register  to view this content.
    In a Standard module

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-07-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Disable Copy and Paste from Clipboard Buttons

    Hi Roy

    Thanks but this code doesn't disable the copy and paste buttons on the ribbon like the original code does

    Cheers

    Duane

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Disable Copy and Paste from Clipboard Buttons

    The best that you could do with the Ribbon for individual sheets is hide it. To change the ribbon requires xml & I think will only apply to the whole workbook

  7. #7
    Registered User
    Join Date
    08-07-2012
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Disable Copy and Paste from Clipboard Buttons

    Thanks Roy

    When you say hide the ribbon can you hide a specific part of the ribbon i.e the clipboard section with the copy and paste buttons ?

    I couldn't hide the whole ribbon but if I can do just that part of the ribbon that would work for me

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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