ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do you unlock a pivot table on a protected excel sheet? (https://www.excelbanter.com/excel-worksheet-functions/47047-how-do-you-unlock-pivot-table-protected-excel-sheet.html)

[email protected]

How do you unlock a pivot table on a protected excel sheet?
 
I have a protected worksheet with only input cells unlocked. A pivot table
was created to analyze data, however when I protect the worksheet it does not
allow the ordinary user the ability to refresh the pivot table data?

Is it possible to protect the worksheet and still allow other users to
refresh the pivot table?

Alan

You can do it with code by putting a button on the sheet to unprotect,
refresh and reprotect, something like
Sub Refresh()
ActiveSheet.Unprotect ("Password")
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
ActiveSheet.Protect ("Password")
End Sub
Please post back if you're unfamiliar with VBA code,
Regards,
Alan.
" wrote
in message ...
I have a protected worksheet with only input cells unlocked. A pivot table
was created to analyze data, however when I protect the worksheet it does
not
allow the ordinary user the ability to refresh the pivot table data?

Is it possible to protect the worksheet and still allow other users to
refresh the pivot table?




[email protected]

I can follow the code and if it is correct in syntax accomplish it. However
it has been a long time since I done much programming.

"Alan" wrote:

You can do it with code by putting a button on the sheet to unprotect,
refresh and reprotect, something like
Sub Refresh()
ActiveSheet.Unprotect ("Password")
ActiveSheet.PivotTables("PivotTable1").PivotCache. Refresh
ActiveSheet.Protect ("Password")
End Sub
Please post back if you're unfamiliar with VBA code,
Regards,
Alan.
" wrote
in message ...
I have a protected worksheet with only input cells unlocked. A pivot table
was created to analyze data, however when I protect the worksheet it does
not
allow the ordinary user the ability to refresh the pivot table data?

Is it possible to protect the worksheet and still allow other users to
refresh the pivot table?






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

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