View Single Post
 
Old 01-30-2015, 05:27 AM
Alaska1 Alaska1 is offline Windows 7 64bit Office 2007
Competent Performer
 
Join Date: Nov 2011
Posts: 110
Alaska1 is on a distinguished road
Default

Thank you. Does that command automatically update the worksheet. Do I add the code by clicking on the worksheet and view code and just past it in.
Sub PivotMacro()Dim pt As PivotTableSet pt = ActiveSheet.PivotTables("MyPivot")pt.RefreshTableEnd Sub

Also I am using the offset function for the dynamic data but it does not seem to be working. =OFFSET(Inventory!$A$1,0,0,COUNTA(Inventory!$A:$A) ,13) My spreadsheet it large and I am going to keep adding to it. I want all the information to be in the pivot table. Thank you for your help.
Reply With Quote