+ 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)

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