+ Reply to Thread
Results 1 to 2 of 2

Autorefresh Pivot Table on Protected Sheet

  1. #1
    Registered User
    Join Date
    05-28-2019
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2019
    Posts
    6

    Autorefresh Pivot Table on Protected Sheet

    I have a sheet with source data and a pivot table in the same sheet. I have protected the sheet so users are not able to select certain cells or change them. By protecting the sheet, the refresh option on the pivot table has been disabled. I am working on a macro that will auto refresh the table. Here is some code that I have tried but it does not work. Please advise on how to get this to working. Thank you.

    Private Sub worksheet_change(ByVal target As Range)


    With ActiveSheet
    'Application.EnableEvents = False
    .Unprotect Password:=" "
    Sheet1.PivotTables("PivotTable1").PivotCache.refresh
    .Protect Password:=" ", AllowUsingPivotTables:=True
    'Application.EnableEvents = True

    End With


    End Sub

  2. #2
    Registered User
    Join Date
    05-28-2019
    Location
    Cleveland, Ohio
    MS-Off Ver
    Excel 2019
    Posts
    6

    Re: Autorefresh Pivot Table on Protected Sheet

    bump.any thoughts?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Refresh Pivot Table in protected sheet
    By bgrish3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2016, 02:05 PM
  2. [SOLVED] Pivot Table Autorefresh!!
    By Veolia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2014, 05:36 AM
  3. Pivot Table Autorefresh
    By Veolia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2014, 01:09 PM
  4. Use of Pivot Table in a Protected sheet
    By lclarke in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-19-2012, 08:44 AM
  5. [SOLVED] Change and autorefresh pivot table as per the selection (Very tough one )
    By amitav in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-18-2012, 10:51 AM
  6. Excel 2007 : Protected Sheet Pivot Table
    By Geogeo in forum Excel General
    Replies: 3
    Last Post: 09-26-2011, 02:04 PM
  7. [SOLVED] Pivot Table Use When Sheet is Protected
    By ExcelMonkey in forum Excel General
    Replies: 1
    Last Post: 08-18-2005, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1