Need Help With PivotTable

Joefried

New Member
Joined
Aug 5, 2011
Messages
37
Hi There

thank you for looking at my question

i created a Pivot table out of an invoice but would like if i replace the DATA from the invoice tab the pivot table should update it self?

Please help me on how this could be done i'm using 2007

thanks for trying
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try pasting this into the code for the worksheet containing the pivot table

Code:
Private Sub Pivot_Refresh()
Activeworksheet.RefreshAll

End Sub
 
Upvote 0
Welcome to the boards, btw :). Right-click the sheet tab that contains the PVT, and select "View Code". Then paste the code into the window that opens.
 
Upvote 0
I have the same same situation in the workbook I'm currently working on. The code I have verbatim running on the worksheet containing my pivot table is:
Code:
Private Sub Worksheet_Activate()
    ActiveWorkbook.RefreshAll
End Sub

See if this works for you
 
Upvote 0

Forum statistics

Threads
1,224,514
Messages
6,179,220
Members
452,895
Latest member
BILLING GUY

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top