Table of contents
TOC
Collapse the table of content
Expand the table of content

File Object

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Description Provides access to all the properties of a file. Remarks The following code illustrates how to obtain a File object and how to view one of its properties.

Sub ShowFileInfo(filespec)
    Dim fs, f, s
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFile(filespec)
    s = f.DateCreated
    MsgBox s
End Sub
© 2017 Microsoft