I've been using an inherited excel macro to generate a email using objMailItem and have worked out the basics, but am struggling to put in place some changes that will allow the macro to do things a little better.
Currently I have the following :
With objMailItem
.To = tolist
.Cc = cclist
.Subject = Subject
.body = sMsg
.attachments.Add filenamepath, 1
.Display
End With
So the enhancements i amm trying to do are :
a) the mail has to go in rich text format, but is there any way to set the format of each line in the ".body";
b) if I wanted to add some additional text after the attachment, how do I do this (adding a 2nd .body after the attachment does not seem to work); and
c) how do I add multiple attachments (rather than just the 1)
Appreciate any help
Thanks
Steve
Currently I have the following :
With objMailItem
.To = tolist
.Cc = cclist
.Subject = Subject
.body = sMsg
.attachments.Add filenamepath, 1
.Display
End With
So the enhancements i amm trying to do are :
a) the mail has to go in rich text format, but is there any way to set the format of each line in the ".body";
b) if I wanted to add some additional text after the attachment, how do I do this (adding a 2nd .body after the attachment does not seem to work); and
c) how do I add multiple attachments (rather than just the 1)
Appreciate any help
Thanks
Steve