Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2006

Tip: Looking for answers? Try searching our database.

'Display Name' Property for Attachments.Add Method

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David C. Holley - 28 May 2005 04:58 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.