ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macros to protect worksheet and prevent locked cell selection (https://www.excelbanter.com/excel-discussion-misc-queries/139988-macros-protect-worksheet-prevent-locked-cell-selection.html)

Excel Enthusiastic[_2_]

Macros to protect worksheet and prevent locked cell selection
 
The Worksheet.Protect Method has variants such as AllowFiltering, etc., but
doesn't have a variant to define whether users can select locked or unlocked
cells. Generally, if a worksheet is mannually protected with "select locked
cells" checked, the next protection action using macros will keep this
property. However, when the file is open in another computer, the proterty is
lost, then users can select locked cells.

Thanks to any help!

E. E.

Macros to protect worksheet and prevent locked cell selection
 
Further to that, the aim is to prevent users from editing "field settings" in
a PivotTable even the PivotTable is protected, so that hidden items cannot be
shown.

"Excel Enthusiastic" wrote:

The Worksheet.Protect Method has variants such as AllowFiltering, etc., but
doesn't have a variant to define whether users can select locked or unlocked
cells. Generally, if a worksheet is mannually protected with "select locked
cells" checked, the next protection action using macros will keep this
property. However, when the file is open in another computer, the proterty is
lost, then users can select locked cells.

Thanks to any help!



All times are GMT +1. The time now is 05:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com