![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set Default Signature | Ben | Outlook and VBA | 4 | March 1st 07 01:22 PM |
Generating Appointment Reports From OL2003 | Trevor Aiston | Outlook - Calandaring | 2 | February 21st 07 07:46 PM |
Automatically generating graphs and data | JG Scott | Outlook and VBA | 1 | January 5th 07 10:18 PM |
Detect default signature | paul | Outlook and VBA | 1 | September 15th 06 06:37 AM |
Not able to add default Signature | antonio | Outlook and VBA | 5 | May 12th 06 07:32 AM |