Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / July 2005

Tip: Looking for answers? Try searching our database.

Excel Spreadsheet - Date Modified

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Murp - 27 Jul 2005 05:25 GMT
Is it possible to retrieve the date an excel spreadsheet was modified outside
of Access using code? I want to use it for comparison in a function.

Signature

Yo Yo Ma.

Nikos Yannacopoulos - 27 Jul 2005 08:01 GMT
Murp,

Try this:

Dim fldr, fl
Dim extfile As String
Dim lstmodif As Date

extfile = "SomePathAndFileName.xls"
Set fldr = CreateObject("Scripting.FileSystemObject")
Set fl = fldr.getfile(extfile)
lstmodif = fl.DateLastModified
Set fl = Nothing
Set fldr = Nothing

HTH,
Nikos

> Is it possible to retrieve the date an excel spreadsheet was modified outside
> of Access using code? I want to use it for comparison in a function.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.