+ Reply to Thread
Results 1 to 5 of 5

VBA to disable cut option

  1. #1
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    383

    VBA to disable cut option

    Hi all,

    If possible, is there any VBA which could be used to disable the 'cut and paste' option (thus one would not be able to use the cut option in any way, i.e. 'right click', 'drag and drop', 'ctrl+x')?

    If possible the copy function would still be enabled.

    If not possible to enable 'copy' whilst disabling 'cut', would be great if the code would disable both 'copy and cut' +'drag andd drop', 'right click' and 'ctrl+x'.

    Appreciate a lot your kind help!

    Thanks a lot!

    Keibri

  2. #2
    Registered User
    Join Date
    11-16-2016
    Location
    NC
    MS-Off Ver
    2007, 2019
    Posts
    86

    Re: VBA to disable cut option

    Will this work for you ?

    http://www.asap-utilities.com/excel-...tegorie=9&m=85

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA to disable cut option

    Hello Keibri,

    You may want to start with the Code below, placed in the attached sample Workbook for your consideration.

    Please Login or Register  to view this content.
    For Code in say Sheets1 to 3:

    Please Login or Register  to view this content.
    In a Standard Module:

    Please Login or Register  to view this content.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Contributor
    Join Date
    02-09-2015
    Location
    malta
    MS-Off Ver
    Microsoft 365
    Posts
    383

    Re: VBA to disable cut option

    Woww!! that's some great VBA and amazing help!! thanks a lot, you solved it out brilliantly!

    really appreciate it!! Exactly what I was looking for!!!! Thanks a bunch!

    I am sorry if I bother one last thing, would it also be possible to have the same thing but only allow for 'ctrl+c' maybe? If not possible, it's already great as is! Apologies for my lack of VBA knowledge!

    Thanks

    keibri

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VBA to disable cut option

    Hello Hello Keibri,

    Thank you for the feedback, and marking the Thread as Solved. Also thank you for the "Rep.", Much Appreciated!

    would it also be possible to have the same thing but only allow for 'ctrl+c' maybe?
    Please replace that Sub in Module 1 with the Code below:

    Please Login or Register  to view this content.
    Regards.

+ 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. Disable SaveAs option allow save
    By csrahul in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-11-2016, 04:43 AM
  2. Disable option in list.
    By kawaitang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-20-2014, 06:28 AM
  3. [SOLVED] Multiple option buttons - Need VBA to disable second group of option buttns based on respo
    By ex123 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-19-2013, 03:30 AM
  4. Replies: 1
    Last Post: 06-16-2013, 12:35 AM
  5. [SOLVED] Disable Option in Como Box
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-17-2005, 04:05 AM
  6. How to disable smoothline option.
    By Sureshkrishnan in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-15-2005, 09:05 AM
  7. disable save as.. option
    By onidallap in forum Excel General
    Replies: 0
    Last Post: 04-20-2005, 09:23 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