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

Insert signature from Access 2003



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 25th 07, 04:54 PM posted to microsoft.public.outlook.program_vba
J
external usenet poster
 
Posts: 42
Default Insert signature from Access 2003

Hi Sue -

When I append to the body, it reformats my signature. How can I keep the
format of my signature and still append new text to the body??

Thanks!

"Sue Mosher [MVP-Outlook]" wrote:

You're overwriting the signature when you set the Body property to new text rather than appending to Body.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"hughess7" wrote in message ...
Hi Sue

I have a default signature but it does not insert it. I am using:

Dim objOutLook As Outlook.Application
Dim objMail As Outlook.MailItem
Dim objOutlookRecip As Outlook.Recipient

Set db = CurrentDb()

Set objOutLook = New Outlook.Application
Set objMail = objOutLook.CreateItem(olMailItem)

With objMail
' Add the To recipient(s) to the message.
Set objOutlookRecip = .Recipients.Add("Itinerary")
objOutlookRecip.Type = olTo
For Each objOutlookRecip In .Recipients
objOutlookRecip.Resolve
Next
.Display
.Subject = "Weekly Itinerary"
.Body = "Please find attached the weekly Itinerary for w/c " &
Format(DateAdd("d", 2 - Weekday(Date), _
Date + 7), "dd mmmm yyyy") & vbCrLf & vbCrLf & .To
If Not IsMissing(strFile) Then
.Attachments.Add (strFile)
End If
End With

Thanks
Sue


"Sue Mosher [MVP-Outlook]" wrote:

What method are you using to create the message? Outlook's Application.CreateItem should automatically insert the user's default signature, if they have one.

"hughess7" wrote in message ...
Hi all

I have code in my Access db to create an email message using the Outlook
object. I would like the default signature to be inserted at the end of the
email. It is used by multiple people on different PCs (all using windows 2003
terminal server). Each have Outlook set to create a default signature in a
new email but my code seems to ignore this? I am displaying the message
before it is being sent (by manually pressing the send button). Is there a
way to access the default signatures for the individual clients? I have tried
looking on newsgroups and google etc but not found a definitive answer and my
coding skills are only very basic!

The signatures files exist in the c:\documents and settings\user folders -
do I need to find the network logon name and use if statements to add the
file dependant upon who is logged on or is there an easier method? Did try
asking this in the Access newsgroups but was told to ask here...

Thanks in advance for any help.
Sue


 




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
Outlook 2003 - Insert Signature Brian Outlook - General Queries 4 June 7th 07 08:18 PM
Signature Button and Insert Signature Missing Bill Glidden Outlook - General Queries 2 December 19th 06 09:42 AM
Signature will not Insert [email protected] Outlook - General Queries 4 August 12th 06 02:52 AM
How can I get signature option at INSERT manu of M. OUTLOOK 2003 CKT Outlook - Installation 1 April 20th 06 07:50 PM
Insert signature from Access 2003 Martin Outlook and VBA 1 January 11th 06 03:12 PM


All times are GMT +1. The time now is 11:25 AM.


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.