Set a reference to the "MicrosoftScriptingRuntime" library in Tools | References.
Then you will be able to get the "autolist" feature.
Your code could look something like...
Sub ABC()
Dim oFS As Scripting.FileSystemObject
Dim oF1 As Scripting.File
Set oFS = New Scripting.FileSystemObject
'...
End Sub
The FileSystemObject File object does not have an author property.
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
"Excel 009" <(E-Mail Removed)>
wrote in message
Hi All,
I need to use the following method to get the author name. Is it
doable? Also, how can I get all the available properties or members
under f1? Why is it that when I type "f1.", the autofill (auto list
member) does not come up?
- 009
Dim f1 As Object
Dim fs As Object
Dim str As String
fileSpec = "C:\TEST\123.zip"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f1 = fs.GetFile(fileSpec)
str = "Last Modified Date" & vbTab & f1.DateLastModified & vbCrLf
str = str & "Last Accessed Date" & vbTab & f1.DateLastAccessed &
vbCrLf
str = str & "Created Date" & vbTab & f1.DateCreated
MsgBox str