[URGENT] Outlook Signature

GustavoR

New Member
Joined
Dec 8, 2014
Messages
37
When I open a New Email in outlook, I imediately see this:


Att,

C:\Users\GUSTAV~1.ROR\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png
Gustavo Magalhães Roriz
Analista de Finanças e Controle
Gerência de Relacionamento e Divulgação de Dados de Estados e Municípios – GERED/COINT
Telefone: +55 61 3412-3001​

<tbody>
</tbody>



as a signature.

I want a macro to create an email, write something at the body and insert the signature. Here is what i got so far:


Dim OutApp As Object
Dim OutMail As Object
Dim strbody As String


Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)


strbody = "Prezados," & Chr(10) & Chr(10) & _
"Encaminho anexo os dados referentes ao FPE e FPM distribuídos por decêndio em " & _
Format(Date - 30, "mmmm") & " de " & Year(Date - 30) & "."


On Error Resume Next


With OutMail
.Display
.To = ""
.CC = ""
.BCC = ""
.Subject = "Arquivo FPM FPE de " & Format(Date - 30, "mmmm") & " de " & Year(Date - 30) & "."
' .Body = strbody
.Display
End With

Please help me guys!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,215,537
Messages
6,125,394
Members
449,222
Latest member
taner zz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top