I'm trying to build a sub in VBA to automatically create a mailItem.
Here is the line that attaches a previously created file...
newMailAttachments.Add file2, olByValue, 1, "Remittance Advice"
When the mailItem displays, the DisplayName appears to have been
ignored. The attachements are displayed as the file name. What exactly
does the DisplayName property refer to? Does it make a difference if I'm
sending the mailItem as text or HTML?
FYI - The VBA sub runs from within Access.
David H
Michael Bauer - 28 May 2005 07:11 GMT
Hi David,
in OL2k that works but was changed in OL XP or 2003 for security
reasons.

Signature
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> I'm trying to build a sub in VBA to automatically create a mailItem.
> Here is the line that attaches a previously created file...
[quoted text clipped - 9 lines]
>
> David H
David C. Holley - 28 May 2005 14:03 GMT
Well you know it would have been (*$&(@*#& nice if MS had updated the
HELP file and object reference information!
> Hi David,
>
> in OL2k that works but was changed in OL XP or 2003 for security
> reasons.
Ned Moorfield - 18 May 2006 09:06 GMT
David,
looks like they did:
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/odc_2003_ta/html/odc_landoffice03_vba.asp
Pretty stupid though, it means there is no way to resolve this problem for
2003.