OL Message serial numbering / Reference

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
Need to find a way to have a reference or serial number added to each new
email message body sent.

If possible a reference set by user to be added to each message but should
be different if sent from a highlighted OL folder.

For Example:
OL folder name is "requisitions": if sending a message while the Requisition
folder is highlighted a refernce called "requisition" is automaticly added to
message body and/or subject with added serial number and so on for each
different folders...Is this possible?

I am unable to do any programing, I can learn fast and can follow given
instructions.

Thanking you for your assistance.
Kind regards,
 
Am Fri, 30 Dec 2005 07:06:04 -0800 schrieb I. Elia:

Please see the sample for the ItemSend event in the VBA help. You can use
that event for editing a message that is going to be sent. It provides you
with a reference on the message, and you can add whatever you want to its
Subject or Body property.

E.g., adding something to the subject means:

Item.Subject = Item.Subject & " AnotherFantasticString"

The name of the "highlighted" - i.e. active - folder you can get with
Application.ActiveExplorer.CurrentFolder.Name.
 
Tank you Mr. Michael Bauer,

It seems that you are always the first to come to the rescue with useful
instructions and answers.
Please guide me on how to get to "the ItemSend event in the VBA help". I
would realy like to follow your suggestion/instructions but I am unable to
locate the ItemSend page.

Have a happy new year!
Best wishes.
 
Am Sat, 31 Dec 2005 01:20:01 -0800 schrieb I. Elia:

Maybe it seems so, but it´s not true, of course.

The easiest access to all help topics goes through the object browser.

First steps:

- Opening the VBA environment: Press ALT+F11
- Opening Project Explorer: Press STRG+R
- Displaying code module "ThisOutlookSession": Click on
Project1/Microsoft Outlook Objects and double click on
"ThisOutlookSession".

All your code you can write into that "ThisOutlookSession" modul.

For working with the object browser please press F2 from within the VBA
environment, switch then from <All Libraries> to Outlook. In the left pane
you´ll see all classes, in the right one their methods, properties, etc.

Sample: Select the Application class in the left pane and in the right one
if its events, the ItemSend event, and then press F1 for the help.
 
Back
Top