I would like to see the creation and modified dates of an Outlook attachment using VBA. No such property seems to exist.
Public myAhmt As Attachment
Public crDt As date
crDt = myAhmt.CreationDate 'no such property exists
For mailitems
the .sentOn
property is nice, but I want the date of the attachment not the email. After saving to my hard drive with .SaveAsfile
, the creation date is indeed accessible (either by manual inspection in Windows Explorer, or using a fileSystemObject
in VBA) ... But it would be nice to see it before saving already.
There seems to be something like .propertyaccessor.getproperties(...)
, but I don't know how to use it, or if it will work.
Is there a way to see the creation and modified dates of an Outlook attachment using VBA?