
Originally Posted by
Domski
To add more than one attachment you would just either repeat these lines with the specific attachment required assigned to stAttachment or create some kind of loop:
Set noAttachment = noDocument.CreateRichTextItem("stAttachment")
Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", stAttachment)
do u mean this?
eg.
Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename")
and for multiple attachments,
Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename1")
Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", c:\Users\Dan\newfolder\filename1)
Set noAttachment = noDocument.CreateRichTextItem("c:\Users\Dan\newfolder\filename2")
Set noEmbedObject = noAttachment.EmbedObject(EMBED_ATTACHMENT, "", c:\Users\Dan\newfolder\filename2)
thanks
Bookmarks