A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Generating a new message with non-default signature



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 30th 07, 08:10 PM posted to microsoft.public.outlook.program_vba
Baby Face Lee
external usenet poster
 
Posts: 2
Default Generating a new message with non-default signature

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  
Old November 30th 07, 11:05 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Generating a new message with non-default signature

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  
Old December 1st 07, 12:11 PM 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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.