[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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,215,029
Messages
6,122,755
Members
449,094
Latest member
dsharae57

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