Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Refreshing Pivot Table on a protected spreadsheet tab

Cell A1 on tab AAA is unprotected and can be updated with a users pass code
which, in turn, automatically updates formulas (that use data from hidden
tabs) in protected-cells B1 through K1000. These cells can be viewed but not
selcted by users.

Cells A1002 through K1100 contain a pivot table that uses the contents of
cells B1 through K1000 as its source to summarize the contents of that range.


After users, enter their respective pass codes in cell A1, I want them to be
able to refresh the pivot table but Excel does not provide that as an option
as long as the spreadsheet is protected, even though I have the ticked the
"Use Pivot Table Reports" in the protection parameters. The cells in the
pivot table range are unprotected.

How can I keep cells A1002 through K1100 protected and still allow users to
refresh the pivot table? I know I can reposition the pivot table on an
unprotected tab and have formulas on tab AAA pointing to the pivot table but
I'm looking for a simpler solution.
--
EarlyBirdie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Refreshing Pivot Table on a protected spreadsheet tab

Hi,

Here is one way, by adding this code the the sheet object for the sheet with
the pivot table:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Application.Intersect(Target, Range("A1"))
If Not isect Is Nothing Then
With ActiveSheet
.Unprotect Password:="x"
.PivotTables("PivotTable1").PivotCache.Refresh
.Protect Password:="x"
End With
End If
End Sub

Of course you will need to change the password.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"EarlyBirdie" wrote:

Cell A1 on tab AAA is unprotected and can be updated with a users pass code
which, in turn, automatically updates formulas (that use data from hidden
tabs) in protected-cells B1 through K1000. These cells can be viewed but not
selcted by users.

Cells A1002 through K1100 contain a pivot table that uses the contents of
cells B1 through K1000 as its source to summarize the contents of that range.


After users, enter their respective pass codes in cell A1, I want them to be
able to refresh the pivot table but Excel does not provide that as an option
as long as the spreadsheet is protected, even though I have the ticked the
"Use Pivot Table Reports" in the protection parameters. The cells in the
pivot table range are unprotected.

How can I keep cells A1002 through K1100 protected and still allow users to
refresh the pivot table? I know I can reposition the pivot table on an
unprotected tab and have formulas on tab AAA pointing to the pivot table but
I'm looking for a simpler solution.
--
EarlyBirdie

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Refreshing a pivot table Neville Bailey[_2_] Excel Discussion (Misc queries) 1 November 16th 08 05:47 PM
Pivot Table Refreshing Yuanhang Excel Discussion (Misc queries) 0 November 30th 07 10:43 PM
Pivot table refreshing Daniel Excel Discussion (Misc queries) 5 July 12th 07 05:02 PM
When refreshing pivot tables my pivot table chart type changes hannah220507 Excel Discussion (Misc queries) 1 May 22nd 07 02:57 PM
Refreshing a pivot table Louise Excel Discussion (Misc queries) 2 May 23rd 05 01:40 PM


All times are GMT +1. The time now is 08:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"