FileName Overview The FileName property of the Attachment class retuns the file name of the Attachment. Syntax vbaAttachment.FileName Return Value A String value indicating the name of the source file.