Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Is there a last update property of a file.

Is it possible to have VBA code check the time of last
update of a file to decide wether or not to download a
later version?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Is there a last update property of a file.

? filedatetime("c:\data1\alex2.xls")
7/10/2003 5:18:35 PM


Should give you the date and time when the file was last saved for a closed
file.

--
Regards,
Tom Ogilvy

"Eric" wrote in message
...
Is it possible to have VBA code check the time of last
update of a file to decide wether or not to download a
later version?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 575
Default Is there a last update property of a file.

There are various ways to do it, but I save a value in the registry for each
file when it is downloaded using savesetting, my version checker uses
getsetting to compare the date the file was last saved against a database
query which returns a file list with dates from a db, and if the file is out
of date it downloads a newer one using an api call urldownloadtofile.

you could also easily maintain the file list as an excel file, and use
urldownloadtofile to get the file with the latest dates, which avoids all
the db stuff.

Robin Hammond



"Eric" wrote in message
...
Is it possible to have VBA code check the time of last
update of a file to decide wether or not to download a
later version?



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
File Property Keyword Search SCSC Excel Discussion (Misc queries) 0 December 12th 07 05:41 PM
Generate File Property Pastel Hughes Excel Discussion (Misc queries) 7 July 27th 06 12:58 PM
File/custom Property fields KC Excel Discussion (Misc queries) 9 July 15th 06 12:08 PM
Best way to inser file property into and excel sheet (cell) Luc Excel Discussion (Misc queries) 3 July 5th 05 08:36 PM
Network access to file - read only property AL Excel Discussion (Misc queries) 1 December 2nd 04 01:22 AM


All times are GMT +1. The time now is 02:31 AM.

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"