View Single Post
  #3  
Old April 7th 06, 10:46 AM posted to microsoft.public.outlook.program_forms
Martin
external usenet poster
 
Posts: 87
Default printing attachment name in Word

Thanks very much Sue - works like a dream...

"Sue Mosher [MVP-Outlook]" wrote:

You could write code to iterate the Attachments collection, put all the names in a list, then insert that information into your Word document at a bookmark you've set up for that purpose, just as you would the Body property, something like:

strAtts = ""
For Each att in Item.Attachments
strAtts = strAtts & att.DisplayName & vbCrLf
Next
objDoc.Bookmarks("Attachment_List").Range.InsertAf ter strAtts

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Martin" wrote in message ...
I'm using the export-to-Word solution to printing Outlook forms in version
2003. Is there a way to see the attachments listed in the Word template?
The text in the Message (or Body) field comes across fine but just shows a
gap where the attachments are - confusing for users who are used to seeing
everything on the printout.

Thanks.


Ads