MS Outlook Signature Formula

Woodpile

New Member
Joined
Sep 14, 2007
Messages
38
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello All,

I am not sure if this can be done but, if it can this is the place to find the answer.

I would like to add a formula (for a variable) to my signature in MS Outlook.

In Excel, the formula would be:

= 45323 - TODAY() & " Days Until Go Live!"

where 45323 is the number for the date of an event. This will return the numbers of days from whatever today is until the specified date with the text after. We are in Office 365.

I will be leading an event taking place in the future and would like to add this auto-updating line to my signature so it is on every email I send or respond to.

Thanks for any help!

Ed
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi,

Interesting problem. Here's what I did. Create the macro below in a VBA module. Add the VBA macro to the Quick Access Toolbar. Click the Quick Access shortcut when you want to create a new email.

Option Explicit

Sub SetSignature()
Dim myOlApp As Outlook.Application
Dim MyItem As Outlook.MailItem
Dim OutMail As Object

Dim Signature As String


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

Signature = Format(45323 - Date, "###") & " Days Until We Go LIVE!"
OutMail.HTMLBody = signature

OutMail.Display
End Sub

Hope this helps.

Bill B.
 
Upvote 0
Solution
Bill,

Thank you for your help and quick response.

The good news is: Your procedure works perfectly.
I have never used macros in anything other than Excel and Access. I will have to give some thought to using them in other applications.

The bad news is: We are required to use a specific format for our email signatures by corporate.
I will work on this and try to adapt what you wrote into the required format.

Thank you again for your help.

Ed
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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