Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
#31715
Boa tarde!
Tenho uma planilha com algumas informações,
Imagem

Eu preciso enviar esses dados no corpo do e-mail utilizando o Outlook, o e-mail deve ficar assim:
Imagem

E pelo código que encontrei não consigo selecionar o intervalo dessas células com a formatação acima

Sub EnviarEmail()
Dim OutApp As Outlook.Application
Dim OutMail As Outlook.MailItem

Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(olMailItem)
Application.DisplayAlerts = False

With OutMail
.To = Range("C2").Value
.CC = Range("C4").Value
.Subject = Range("C6").Value
.HTMLBody = Range("B10:K100").Value
.Attachments.Add ActiveWorkbook.FullName
.Send
End With

Application.DisplayAlerts = True

Set OutMail = Nothing
Set OutApp = Nothing
End Sub

Poderiam me ajudar?
Obrigada!
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord