Creating a title with Date based on most recent PivotTable Refresh

PagsG

New Member
Joined
Apr 13, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello All,

Looking for help in creating a title for a pivot table which would include the most recent date the pivot table was refreshed. Below I have the formula for the original title where the date was entered based on whatever 'today' is. But I'd like to replace that logic with the pivot's most recent refresh date. Meaning, if the last refresh date is today (April 13th, 2022), and I open the file again on Friday, April 15th - I want the title to still say 4-13-22. However if I fresh the pivot table, the date should immediately update.

=CONCATENATE("Report Dated ",TEXT(TODAY(),"m-dd-yy"))

PivotTable1.JPG


Also, I saw a thread that shows VBA code I could enter into the Worksheet->PivotTableUpdate screen. I've put the below code in and am waiting for tomorrow to see if the date remains as 4-13, then updates is I update the Pivot.

Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)
Range("A2").Value = Date
End Sub

Any help would be most appreciated.

Thanks!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,214,614
Messages
6,120,525
Members
448,969
Latest member
mirek8991

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