Programmatically Create an E-mail Signature on Outlook Startup

  • Thread starter Thread starter GaryO
  • Start date Start date
G

GaryO

I have several hundred users that will be using a single mandatory profile.
As it is currently setup, whenever a user opens outlook a new Outlook Profile
is created for them to use during that Outlook session. If the user were to
close Outlook and reopen it, a new profile would be created. When the user
logs off of the computer all profile information on the computer is erased.

I need to be able to, on Application Startup, Create a new default signature
to use for new messages and replies in the current profile.

I am curious if anyone has an example of this? I am currently only able to
find examples where the application has to be closed (and in my case the
profile will not exist) to work.

Any help would be greatly appreciated.

GaryO
 
You forgot to mention your Outlook version. Whatever it is, it probably would
be possible to accomplish this with an add-in. Would that a possible
approach?
 
I currently have OL 2003 Deployed; however, if the only solution available is
to go to OL2007/Office 2007 that is an acceptable option.

Also an add-in would be an acceptable approach to this delema.
 
Take a look at the code sample at
http://technet.microsoft.com/en-us/magazine/cc160913.aspx . I also have a
more sophisticated version using the same technique in my Outlook 2007 book,
as Listing 17.8; you can download the code from
http://www.outlookcode.com/member/book.aspx and potentially adapt it to
Outlook 2003 by taking out the bits that gather information from the user's
Exchange account.

I know this technique works well in Outlook 2007 and in Outlook 2003 with
Word as the editor. I'm not sure whether it works, though, in Outlook 2003
without WordMail.

If you used an add-in to accomplish this, the code could go in the
Application.Startup event handler. (I'd do a VBA prototype before attempting
an add-in.) Another possibility -- if you can implement a registry change for
each user's login -- is to put the code in a web page and set that page to
run as a folder home page. I have an example of this in the Outlook 2007
book, but it's not a technique limited to that version.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top