Protect and unprotect Pivot table

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

Guest

Hi,

Is there any way we can protect and unprotect the pivot table only through
macro not the whole sheet?

Thanks
 
Hi
you can only protect the whole sheet BUT you can try the following:
- select the other cells
- goto 'Format - Cells - Protection' and uncheck 'Locked'
- NOW protect your worksheet
 
Use the
Activesheet.EnablePivotTable
Activesheet.Protect Password:="ABC", UserInterfaceOnly:=True

This must be done each time the workbook is opened as the EnablePivotTable
and UserInterfaceOnly settings are not persistent across the closing of a
workbook (so use the workbook open event as an example. )
 

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