• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

correction in vb code required pivot refresh lock sheet

Ateeb Ali

Member
Dear Sir,
I am using following code to refresh my pivot table which is on same sheet as of data
The sheet is protected as well since I dont want user to change the format but it is not working on lock sheet, in unlock sheet, its working fine.

Sub Pivot()
'
' Pivot Macro
'


'
ActiveWindow.SmallScroll Down:=24
Range("A37").Select
ActiveSheet.PivotTables("PivotTable2").PivotCache.Refresh
End Sub
 
Back
Top