DISABLING CUT OPTION ON WEB VERSION OF EXCEL

misiek5510

New Member
Joined
May 25, 2021
Messages
38
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
Hi,

I have very annoying issue. I have a set of unlocked cells and locked cells that calculate things from the unlocked cells (based user input). I'm using absolute references to fix which cells I want to look at, so copy and paste works fine, however the issue occurs when you cut and paste it gives me an !REF error. I'd like to disable cut option as there is no other way to fix this, however the problem is the VBA does not work on the teams / web / sharepoint version of excel, therefore people are messing my sheets up by cutting and pasting. Is there anything I can do apart from endlessly fixing it ?
 
You could try trapping the ctrl+x combination but I haven't tried that in Excel. If the cut occurs before the event then I don't know how you'd restore what was there.

EDIT - my thinking was that this would be an event that could be cancelled or undone as it can be in Access. Apparently not so, and at the moment I can't think of how to make use of that. Maybe cause a ctrl+z action?
 
Last edited:
Upvote 0
FWIW, it appears that I did get it to work by shifting the OnKey code to the worksheet activate event instead of the workbook. However, that still leaves Cut on the ribbon, unless maybe you have modified the ribbon. AFAIK, you cannot disable/enable ribbon commands based on sheet selection. So your only option would be to customize the ribbon by disabling cut as well as use OnKey code. However, no sheet in the wb would be able to use cut on the ribbon, so perhaps said workbook would have to be limited to whatever sheets you would prevent this on.

Not sure if you could code to protect/unprotect sheet and wb in a way that would allow your users to still make certain changes.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top