How to Disable Copy, Cut, and Paste for Unlocked Excel Cells
Question details
The user wants to prevent copying, cutting, and pasting specifically within unlocked cells in an Excel workbook, ideally without using VBA in a web environment.

- Product
- Excel for the web
- Device & OS
- not provided
- Scenario
- Editing a partially locked Excel workbook hosted on OneDrive using a web browser.
- Observed behavior
- Excel for the web allows clipboard actions in unlocked cells by default and lacks built-in menu settings to restrict copying, cutting, and pasting without scripting.
Keep in mind that Excel for the web has limited feature support compared to the desktop version, particularly concerning advanced cell protection and VBA macros.
Acknowledge Excel for the Web Limitations
Understand that restricting clipboard actions on unlocked cells is not natively supported in the web version without VBA.
Currently, Excel for the web does not offer a built-in toggle or advanced setting to disable copy, cut, and paste specifically for unlocked cells. Because it operates within a browser environment, it relies heavily on default browser clipboard behaviors.
Navigate to the Review tab in Excel for the web. You will notice that while you can protect sheets and restrict users from selecting locked cells, there are no granular options to prevent copying or pasting within the cells you have left unlocked.
Since this feature is not natively supported, you can request it by clicking 'Help' in the top ribbon, selecting 'Feedback', and submitting your use case directly to the Microsoft development team.
Use Desktop Excel with VBA (Workaround)
Switch to the desktop application to apply VBA macros that clear the clipboard or restrict shortcut keys.
Manage Spreadsheets Securely with WPS Office
While browser-based spreadsheet apps often lack advanced protection settings, desktop applications like WPS Office provide comprehensive tools to secure your data. WPS Spreadsheet offers excellent compatibility with Microsoft Excel formats, familiar offline performance, and robust sheet protection features.
- 1. Download and install: Download WPS Office Free from the official website and follow the installation instructions.
- 2. Open your workbook: Launch WPS Spreadsheet and open your existing Excel workbook directly without any format conversion.
- 3. Apply protection: Navigate to the Review tab to explore advanced protection features and securely manage your data offline.

Frequently Asked Questions
Can I restrict users from copying data in a protected Excel sheet?
Yes. When protecting a sheet in the Review tab, you can uncheck 'Select locked cells'. This prevents users from clicking on and copying data from locked cells. However, any cells you intentionally leave unlocked will still permit copying and pasting.
Why do copy and paste restrictions work differently in Excel for the web?
Excel for the web relies on the browser's clipboard permissions and lacks the deep system-level integration found in desktop applications. Advanced restrictions, like disabling the Ctrl+C or Ctrl+V keyboard shortcuts entirely, require a desktop environment with macro support.
Does WPS Spreadsheet support VBA macros?
Yes, the Pro version of WPS Office supports VBA macros, allowing you to run custom scripts, restrict user actions, and perform advanced automation just as you would in Microsoft Excel desktop.




