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.
  • Avatar do usuário
#62395
Só gostaria de inserir uma assinatura feita no próprio Outlook com imagem e texto nesse VBA, mas não sei como. Segue o código:

Sub Aplicacao_Fundo()
Dim OutlookApp As Object, OutlookMail As Object Dim email As String, assunto As String, corpo As String

Set OutlookApp = CreateObject("Outlook.Application")

Set OutlookMail = OutlookApp.CreateItem(0)

email = ActiveSheet.Range("B4").Value

assunto = "CONFIRMAÇÃO DE ORDEM - " & ActiveSheet.Range("B3").Value & "(" & ActiveSheet.Range("B2").Value & ")"

corpo = Worksheets("Texto").Range("A1").Value

With OutlookMail

.to = email
.CC = ""
.BCC = "fulano@fulano.com"
.Subject = assunto
.Body = corpo
.Display ' para envia o email diretamente defina o código .Send
End With

Set OutlookMail = Nothing

Set OutlookApp = Nothing

End Sub
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