View Single Post
  #3  
Old December 1st 07, 11:11 AM posted to microsoft.public.outlook.program_vba
Baby Face Lee
external usenet poster
 
Posts: 2
Default Generating a new message with non-default signature

Thanks Sue, that's great!

"Sue Mosher [MVP-Outlook]" wrote:

Here's a code sample: http://www.outlookcode.com/codedetail.aspx?id=1743. You'd need to create the new message first:

Dim newMsg as Outlook.MailItem
Set newMsg = Application.CreateItem(olMailItem)
newMsg.Display
InsertSig "your preferred signature"
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Baby Face Lee" wrote in message news
Hi guys,

I'd like to put an extra button in the toolbar that will create a new
message but with one of my non-default signatures. I'm currently using
Outlook 2007.
I realise you can assign different signatures to different email addresses
but I'd like to use one of my main addresses but with different signatures.
I'm familiar with using VBA with Access but to be honest I haven't the first
idea about the object model and code to use for Outlook.
Could you give me some pointers or pseudo-code to get me started?
Thanks in advance,

Lee


Ads