If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Date Last Modified Function
Hi guys,
I am wondering if there is a function in excel that can show the date my .xls fle was last modified? So i need it to only change when any cells are changed with in the workbook but if the workbook is opened and just viewed at, the date will not change. Thanks for the help. |
#2
|
|||
|
|||
Date Last Modified Function
You would need to build that yourself, with VBA
'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range) With ThisWorkbook .Names.Add Name:="___ChangeTime", RefersTo:=Now .Names("___ChangeTime").Visible = False End With End Sub You can access on a worksheet with this UDF Function DateChanged() Application.Volatile DateChanged = Evaluate(Parent.Parent.Names("___ChangeTime").Refe rsTo) End Function -- HTH RP (remove nothere from the email address if mailing direct) "Leon" wrote in message oups.com... Hi guys, I am wondering if there is a function in excel that can show the date my .xls fle was last modified? So i need it to only change when any cells are changed with in the workbook but if the workbook is opened and just viewed at, the date will not change. Thanks for the help. |
#3
|
|||
|
|||
Date Last Modified Function
Thanks alot bro ill try that right now.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Range and Average F/X Rate | David | General Discussion | 0 | June 23rd, 2005 02:26 PM |
How do I create a schedule from a list of dates ? | Gavin Morris | Charts and Charting | 1 | June 22nd, 2005 12:24 PM |
using nz function to rid #error msg in query | Alex | Running & Setting Up Queries | 5 | March 17th, 2005 04:49 PM |
QDE (Quick Date Entry) | Norman Harker | General Discussion | 3 | September 3rd, 2004 08:00 AM |
The date a cell is modified | Maddoktor | General Discussion | 9 | August 22nd, 2004 10:18 PM |