Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

'Display Name' Property for Attachments.Add Method

63 views
Skip to first unread message

David C. Holley

unread,
May 27, 2005, 11:58:08 PM5/27/05
to
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

unread,
May 28, 2005, 2:11:42 AM5/28/05
to
Hi David,

in OL2k that works but was changed in OL XP or 2003 for security
reasons.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook


"David C. Holley" <DavidC...@netscape.net> wrote in message
news:uCHF8lzY...@TK2MSFTNGP14.phx.gbl...

David C. Holley

unread,
May 28, 2005, 9:03:45 AM5/28/05
to
Well you know it would have been (*$&(@*#& nice if MS had updated the
HELP file and object reference information!

Ned Moorfield

unread,
May 18, 2006, 4:06:26 AM5/18/06
to
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.

0 new messages