Outlook - VBA

pix_jnr

New Member
Joined
Oct 12, 2005
Messages
13
Hi All,

Im trying to write some VB code that will (when run) do the following in outlook;

Obtain the date of a message received and then insert this into the beginning of the subject line.
If the message contains the words "Shut off" in the body of the message, it will then also type SR at the start of the subject line.

Im fairly proffiecient (actually average) with VB code in excel but wouldn’t know where to start to use something like this in outlook.

Thanks for everyones help,

Simon.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Not had experience of direct Outlook macros because we still use XL97 and this is not available until 2000.

I guess the principle will be to use the same code as with
Set MyOlApp = CreateObject("Outlook.Application")

except we do not need to do that bit because we are already there. Similar method to writing Access/Excel macros.
 
Upvote 0

Forum statistics

Threads
1,224,862
Messages
6,181,464
Members
453,044
Latest member
rgbenson1

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