#1   Report Post  
Posted to microsoft.public.excel.misc
AuditorGirl
 
Posts: n/a
Default PIVOT TABLE DATE

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   Report Post  
Posted to microsoft.public.excel.misc
Mallycat
 
Posts: n/a
Default PIVOT TABLE DATE


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   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish
 
Posts: n/a
Default PIVOT TABLE DATE

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date formatting on a Pivot Chart's Data Table [email protected] Charts and Charting in Excel 2 May 23rd 06 04:53 PM
Calculated Field in Pivot Table Based on Two Counted Fields cmlits Excel Discussion (Misc queries) 1 March 30th 06 06:44 AM
Pivot Table help! Marc Fleury Excel Discussion (Misc queries) 9 December 23rd 05 06:29 AM
pivot table sort entries that don't yet appear in table rachael Excel Discussion (Misc queries) 11 September 20th 05 12:29 AM
How to group date in pivot table Minh Le Excel Discussion (Misc queries) 1 March 4th 05 02:55 AM


All times are GMT +1. The time now is 08:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"