Return the name of the attached file in the current message
part.
Syntax
object.Attachment
The object is an expression that evaluates to an InternetMail
object. The property returns a string value.
Remarks
The Attachment property returns the name of the file
attachment in the current part of a multipart message. When a new
part is selected that contains an attached file, the
Attachment property is updated to reflect the attached
file's name. If the current message part does not contain a file
attachment, this property will return an empty string.
Data Type
String
See Also
AttachData Method,
AttachFile Method, ExtractFile Method
|