Are you using a cell reference or a defined name
at Step 2 of 4 of the PivotTable Wizard?
Oops... perhaps I made a rash assumption...
Is your PivotTable's data coming from an External
Data Source? If so, please describe that source.
Sarah,
Right click on your sheet tab containing the pivot table, then left click on "View Code", and try pasting this code into sheet the module. I wasn't clear if your data et. al. is on the same sheet as your pivot table, so to be on the safe side this code will update your pivot table automatically when its worksheet is activated. Hopefully this will get you at least a little closer to what you want to accomplish. Thanks to Chip Pearson on his web site for most of this code.
Hope this helps.
Tom Urtis
Sub Worksheet_Activate()
Dim iP As Integer
Application.DisplayAlerts = False
For iP = 1 To ActiveSheet.PivotTables.Count
ActiveSheet.PivotTables(iP).RefreshTable
Next
Application.DisplayAlerts = True
End Sub
Re: Oops... perhaps I made a rash assumption...
Hi Mark
sorry about the delayed response - yes the data is coming from an external source - a Database Query set up to go into our financial system. When the data comes in Excel names it as 'external data' but I can't use this in the pivot as the range name (it won't let me) so I am using a user - defined name. I have had to use a range name as the data is on a separate sheet to the pivot
kind regards
Sarah