EnablePivotTable Property Example
This example enables PivotTable controls on a protected worksheet.
ActiveSheet.EnablePivotTable = True ActiveSheet.Protect contents:=True, userInterfaceOnly:=True