Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Excel VBA Email Envelope Embed two ranges in the body

Hi

I use the following code to build an email in the Mail Envelope
I want to embed two small ranges in the body. How do I do this?


            With Globals.ThisAddIn.Application.ActiveSheet.MailEnvelope
                        .Visible = True
                        .Item.To = oDetail
                        .Item.Cc = oDetail2
                        .Item.Subject = oDetail3
                        .Item.Body = oDetail4
                        .Attachment = oDetail5
                        '.Item.Send()
                    End With
ASKER CERTIFIED SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Hi
I got the error
Public member 'Attachment' on type 'IMsoEnvelopeVB' not found.
but of course you answered my question. Thanks very much