Avatar of Murray Brown
Murray Brown
Flag 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
Microsoft ExcelVBA

Avatar of undefined
Last Comment
Murray Brown

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Rgonzo1971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Murray Brown

ASKER
Hi
I got the error
Public member 'Attachment' on type 'IMsoEnvelopeVB' not found.
Murray Brown

ASKER
but of course you answered my question. Thanks very much
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy