Macros to protect worksheet and prevent locked cell selection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top