View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default DateLastModified property date extraction

Nigel,

I believe that the Scripting Runtime Library is installed by Internet
Explorer version 5, so if you have IE5 or later on the system, it should
work fine.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Nigel" wrote in message
...
Chip,

Thanks for your help again, to illuminate my understanding further, I

found
the "Microsoft Scripting Runtime" in my system (XP SP2 & Excel SP2),

however
will this code run in NT4 / Excel 97 which is my target system ?

TIA
Nigel


"Chip Pearson" wrote in message
...
Nigel,

If you don't have a reference to the Scripting Runtime Library, go to

the
Tools menu, choose References, find "Scripting Runtime Library" and

check
it. Then, use code like


Dim FSO As Scripting.FileSystemObject
Dim F As Scripting.File
Set FSO = New Scripting.FileSystemObject
Set F = FSO.GetFile(ThisWorkbook.FullName)
Debug.Print Int(F.DateLastModified)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Nigel" wrote in message
...
I am trying to extract the DATE part of a file using the

DateLastModified
property. Anyone experience of doing this?

It appears I need to define the file as an object first then read the

object
property, and finally extract the date string.

TIA
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World!

100,000
Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via

Encryption
=---






----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet

News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000

Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---