Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Track Date Created & Last Modified Dates

Is there any way of getting the Date Created & Last Modified Dates for an
Excel file so that I can create a summary report of time spent on on a file?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Track Date Created & Last Modified Dates

for a closed file

Sub ABB()
Dim fso As New FileSystemObject
Dim f As File
'Get a reference to the File object.
Set f = fso.GetFile(Environ("windir") & "\system.ini")
Debug.Print f.DateCreated
Debug.Print f.DateLastAccessed
Debug.Print f.DateLastModified
End Sub

Requires a reference to the Microsoft Scripting Runtime or modify to use
late binding

Dim fso as Object, f as Object
Set fso = CreateObject("Scripting.FileSystemObject")

Otherwise, you might be talking about the build in document properties

http://www.cpearson.com/excel/docprop.htm

--
Regards,
Tom Ogilvy


"TonyD" wrote in message
...
Is there any way of getting the Date Created & Last Modified Dates for an
Excel file so that I can create a summary report of time spent on on a
file?



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
Can't sort cells in date order that contain dates created from arr StaceyJ Setting up and Configuration of Excel 3 February 5th 09 04:44 PM
two variable dates created from a single date Lindsay New Users to Excel 3 August 3rd 07 10:36 PM
Use date modified to change format & create filter to track change PAR Excel Worksheet Functions 0 November 15th 06 09:17 PM
Date formatting of formula created dates Fred Excel Discussion (Misc queries) 2 October 23rd 06 02:40 PM
Change File DATE created & modified Don Guillett[_4_] Excel Programming 3 April 26th 05 09:38 PM


All times are GMT +1. The time now is 11: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"