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 / Importing / Linking / August 2005

Tip: Looking for answers? Try searching our database.

Before Importing excel files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trever B - 15 Aug 2005 22:08 GMT
Need help on the following items.

Prior to import of a excel speadsheet I need to know the following:-

1 When was excel spreadsheet created.
2 When when it last modified
John Nurick - 16 Aug 2005 06:53 GMT
Hi Trever,

To get the dates of the *file* you can use the FileSystemObject, e.g.

Sub ShowFileAccessInfo(filespec)
   Dim fs As Object, f As Object, s As String
   Set fs = CreateObject("Scripting.FileSystemObject")
   Set f = fs.GetFile(filespec)
   s = UCase(filespec) & vbCrLf
   s = s & "Created: " & f.DateCreated & vbCrLf
   s = s & "Last Accessed: " & f.DateLastAccessed & vbCrLf
   s = s & "Last Modified: " & f.DateLastModified  
   MsgBox s, 0, "File Access Info"
End Sub

but this may not be what you need (for instance, some ways of copying a
file affect its timestamps but not the data it contains. So you may need
to use DSOFile.dll, a library which lets you access properties of Office
documents without actually opening them. A web search will find
information on how to do this.

>Need help on the following items.
>
>Prior to import of a excel speadsheet I need to know the following:-
>
>1 When was excel spreadsheet created.
>2 When when it last modified

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
bart dotzman - 24 Aug 2005 15:05 GMT
1-the spread sheet was started two months ago
2-It was last modified today

> Need help on the following items.
>
> Prior to import of a excel speadsheet I need to know the following:-
>
> 1 When was excel spreadsheet created.
> 2 When when it last modified
 
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.