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
#1539
Bom dia
Gostaria da ajuda de vocês para saber como eu posso fazer uma macro para que seja inserido minha assinatura no outlook.
Abaixo segue o código que uso atualmente para inserir anexos e descrição di e-mail, ela funciona perfeitamente, porém toda vez tenho q ir manualmente e inserir a assinatura.

"E-MAIL"
Sub EnviaEmail()

Dim appOutlook As Object
Dim olMail As Object

'Verifica se Outlook está aberto. Caso não esteja, criar nova instância
On Error Resume Next
Set appOutlook = GetObject(, "Outlook.Application")
If appOutlook Is Nothing Then
Set appOutlook = CreateObject("Outlook.Application")
End If
On Error GoTo 0

Set olMail = appOutlook.CreateItem(0) '0 é um item de e-mail

With olMail
.To = ";"
.CC = ";"
.Subject = "ASSUNTO"
.Attachments.Add ("CAMINHO DO ARQUIVO\PLANILHA.xlsm")
.Body = ""
.Display 'ou .Send
End With
ActiveWorkbook.Save
End Sub

Desde ja agradeço
#1543
Boa tarde!!

Aqui tem alguns exemplos..
http://www.rondebruin.nl/win/s1/outlook/signature.htm
Código: Selecionar todos
signature = OMail.body
Código: Selecionar todos
.body = "MeuTexto" & vbNewLine & signature
Att
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