Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default How to set-up a field that displays the last updated date

have a shared group file and would like to see upon opening the last date a
change was made to the file. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default How to set-up a field that displays the last updated date

I don't think there's a regular Excel worksheet function to give you that
information, but you can create a User Defined Function to do it.

Use the VB Editor ([Alt]+[F11] to get into it, Insert | module to insert a
new code module if required - otherwise just add to existing code module)

Put this code in there
Function GetModifiedDate(Dummy As Variant)
GetModifiedDate = ThisWorkbook.BuiltinDocumentProperties("Last Save Time")
End Function

Now back on the worksheet where you want to show that, use it like you would
any other function in Excel. Lets say you want the date to show up in cell
A2 on a sheet, then in that location put
=GetModifiedDate(A2)
yes, not a mistake, the cell is going to reference itself. It's just a
dummy value that isn't used by the function itself. But worksheet functions
seem to have a deep seated need for at least one parameter. Format the cell
as Date in to be displayed however you want, and you're in business.
"teh_chucksta" wrote:

have a shared group file and would like to see upon opening the last date a
change was made to the file. Thanks.

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
How do I format date field in footer? Terry Sharman New Users to Excel 5 April 12th 06 08:08 PM
Capturing a date field once only Rob Svilts Excel Worksheet Functions 2 October 27th 05 01:22 PM
Updated Field... Chris Excel Discussion (Misc queries) 1 October 24th 05 06:53 PM
NETWORKDAYS - Multiple Date Selection Annabelle Excel Discussion (Misc queries) 3 October 4th 05 07:04 PM
How can I format a cell so date field only displays the Month? tk_2u Excel Discussion (Misc queries) 3 December 4th 04 12:54 AM


All times are GMT +1. The time now is 01:36 PM.

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

About Us

"It's about Microsoft Excel"