Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Get the date a file was modified

Is it possible to get the date when a file was last modified
programmatically in VBA?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Get the date a file was modified

filedatetime

but not the workbook that is open - that always has the date and time when
it was opened. It you open it read only I believe it will have its last
saved time.

--
Regards,
Tom Ogilvy

"JustinP" wrote in message
oups.com...
Is it possible to get the date when a file was last modified
programmatically in VBA?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Get the date a file was modified

JustinP wrote:
Is it possible to get the date when a file was last modified
programmatically in VBA?


Using a FileSystemObject, the GetFile method will return a File
object, from which you can query the DateLastModified property.


Bob
--
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
Formula for file modified date Pastel Hughes Excel Discussion (Misc queries) 3 April 4th 08 06:23 PM
Date modified changes when file not saved BAC Excel Discussion (Misc queries) 5 January 3rd 08 12:49 PM
insert the date the file was last modified Ted M H Excel Discussion (Misc queries) 5 September 2nd 07 03:28 PM
date file modified Matthew Excel Discussion (Misc queries) 2 October 11th 06 06:52 PM
insert the date the file was last modified Hoff Excel Discussion (Misc queries) 8 November 21st 05 01:31 PM


All times are GMT +1. The time now is 08:15 PM.

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"