bkjohn2016
New Member
- Joined
- Sep 9, 2016
- Messages
- 38
Hello all,
So, I'm trying to gather several properties for a number of workbooks in a folder:
i have been using the .BuiltinDocumentProperties property to gather the author and creation date but I'm having difficulty getting the last two attributes. File Size is pretty self-explanatory and with file type I'd like to demonstrate if the file is an old 97-2003 file type vs a newer version of excel. Any ideas?
Right now I'm still testing but I will want to this print to another worksheet. But all I need are those two last attributes.
So, I'm trying to gather several properties for a number of workbooks in a folder:
- Original Author
- Creation Date
- File Size
- File Type
i have been using the .BuiltinDocumentProperties property to gather the author and creation date but I'm having difficulty getting the last two attributes. File Size is pretty self-explanatory and with file type I'd like to demonstrate if the file is an old 97-2003 file type vs a newer version of excel. Any ideas?
Code:
Sub PrintDocumentProperties()
For Each p In ActiveWorkbook.BuiltinDocumentProperties
Debug.Print p
Next
End Sub
Right now I'm still testing but I will want to this print to another worksheet. But all I need are those two last attributes.