Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 99
Default file property

Hi,

For this you can use dsofile.dll
Remember to register it.

In your VBA

Dim oFilePropReader As DSOleFile.PropertyReader
Dim oDocProp As DSOleFile.DocumentProperties

Sub FileInfo(ByVal strPath As String)
Set oFilePropReader = New DSOleFile.PropertyReader
Set oDocProp = oFilePropReader.GetDocumentProperties(strPath)
' Same examples
Debug.Print oDocProp.DateCreated
Debug.Print oDocProp.TotalEditTime
Debug.Print oDocProp.DateLastPrinted
Debug.Print oDocProp.DateLastSaved
End Sub

Wouter HM


71marco71 wrote in message ...
Dear friends
I would like to know the date of last access to my xls files present in
my directory C
Is it possible with a VBA code?


---
Message posted from http://www.ExcelForum.com/

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
Can you check the last update property of a file? Eric[_14_] Excel Programming 2 November 21st 03 02:24 PM
Is there a last update property of a file. Eric[_14_] Excel Programming 2 November 20th 03 02:49 PM


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