A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date Last Modified Function



 
 
Thread Tools Display Modes
  #1  
Old November 26th, 2005, 03:16 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default 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  
Old November 26th, 2005, 09:28 AM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default 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  
Old November 26th, 2005, 10:06 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Date Last Modified Function

Thanks alot bro ill try that right now.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:21 AM.


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