Secure multiple sheets at once

New Contributor

I want to block identical specific cells from editing in 31 separate worksheets. Is there a way to do this once for all sheets and not separately for each sheet?


2 Replies

Hello @tulygarb 


you can set the properties of cells in multiple sheets by selecting the first sheet and then Shift+Click the last sheet. Next, select the cells and apply the format and/or property. Since cell properties default to "Locked", you probably want to use this approach to unlock the cells that should be editable when the sheet is protected.


In order for the protection to work, though, you must use the Protect Sheet command on each sheet in turn. This can be done manually or you could use a VBA macro that speeds this up.


Sub test()
For Each ws In ThisWorkbook.Worksheets
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
Next ws
End Sub

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies