Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I need to create a header that includes a date that will update each time a
pivot table is opened--which I know how to do-- but how do I also include a "last date refreshed" In other words, when I first open this pivot table, I want to see yesterday's date (last date opened) and today's date. Of course, sometimes I will be opening it on Monday, and the last date opened will be the previous Friday. Any help?? Thanks, |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() AuditorGirl Wrote: update each time a pivot table is opened....but how do I also include a "last date refreshed" Any data like this will need VBA, because you can't guarantee 'when' the last day of access was. I assume you have set the Pivot table to Auto refresh when opened. Hence all you need is the last date opened. A simple VBA macro like this will do it. Sub auto_open() Sheets("sheet1").Range("A1").Value = Now() End Sub Matt -- Mallycat ------------------------------------------------------------------------ Mallycat's Profile: http://www.excelforum.com/member.php...o&userid=35514 View this thread: http://www.excelforum.com/showthread...hreadid=553787 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can use programming to show the date of the last refresh.
On a regular module, add the following function: Function PTRefresh(rng As Range) As Date PTRefresh = rng.PivotTable.RefreshDate End Function On the worksheet, use a formula to display the date, e.g.: ="Last refreshed " & TEXT(ptrefresh(A4),"dd-mmm-yy hh:mm") where A4 is a cell in the pivot table. AuditorGirl wrote: I need to create a header that includes a date that will update each time a pivot table is opened--which I know how to do-- but how do I also include a "last date refreshed" In other words, when I first open this pivot table, I want to see yesterday's date (last date opened) and today's date. Of course, sometimes I will be opening it on Monday, and the last date opened will be the previous Friday. Any help?? Thanks, -- Debra Dalgleish Contextures http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date formatting on a Pivot Chart's Data Table | Charts and Charting in Excel | |||
Calculated Field in Pivot Table Based on Two Counted Fields | Excel Discussion (Misc queries) | |||
Pivot Table help! | Excel Discussion (Misc queries) | |||
pivot table sort entries that don't yet appear in table | Excel Discussion (Misc queries) | |||
How to group date in pivot table | Excel Discussion (Misc queries) |