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

automate Outlook..insert signiture



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 25th 07, 10:16 PM posted to microsoft.public.outlook.program_vba
Sam
external usenet poster
 
Posts: 143
Default automate Outlook..insert signiture

Hi

Please help me i am new to this and i would like to automate using outlook.
(i have never automated with outlook. i know that its kind of different than
the other MS apps). I am automating from Microsoft Access. I am using the
DoCmd.SendObject to create an email. I am not asking for instruction on the
entire automation process (althought that would be nice) i am troubled with
the signature part. i am trying to insert a signiture into an email that i am
generating with the Docmd.sendobject. i am not sure how I should refer to the
instance that is already there. in this case i am not looking to start a new
instance. please help, i am walking in the dark.

btw, i assumed (and i told my users) that i can't attach anything to the
email generated with the docmd.sendobject. i am now thinking that since my
main objective is to attach a file maybe i should not use docmd.sendobject
altogether. instead i should automated the whole thing.

to clarify, i am not using a report or other object from access. i will
paste here the code i am using:
DoCmd.SendObject , , , Me.txtEmailAddress, ", ,
Me.txtFacility.Column(0) & " Systems Audit " & Date, Me.txtEmailBodyText, True

thanks,

Sam

Ads
  #2  
Old July 25th 07, 11:24 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default automate Outlook..insert signiture

i am trying to insert a signiture into an email that i am
generating with the Docmd.sendobject.


You would need to create and display the message with Outlook methods and insert your content into the MailItem.Body or .HTMLBody property.

Or, reverse the process: Create and display a plain text message using Outlook objects and get the signature from that item's Body property and concatenate it with the text you're using for the message body.

Or, if the user has only one signature, read it from the matching .txt file in the user's Signatures folder on the local drive.

I agree with your thinking -- that if all you're using SendObject for is to create a message with an attachment, using Outlook objects would be better.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"SAm" wrote in message ...
Hi

Please help me i am new to this and i would like to automate using outlook.
(i have never automated with outlook. i know that its kind of different than
the other MS apps). I am automating from Microsoft Access. I am using the
DoCmd.SendObject to create an email. I am not asking for instruction on the
entire automation process (althought that would be nice) i am troubled with
the signature part. i am trying to insert a signiture into an email that i am
generating with the Docmd.sendobject. i am not sure how I should refer to the
instance that is already there. in this case i am not looking to start a new
instance. please help, i am walking in the dark.

btw, i assumed (and i told my users) that i can't attach anything to the
email generated with the docmd.sendobject. i am now thinking that since my
main objective is to attach a file maybe i should not use docmd.sendobject
altogether. instead i should automated the whole thing.

to clarify, i am not using a report or other object from access. i will
paste here the code i am using:
DoCmd.SendObject , , , Me.txtEmailAddress, ", ,
Me.txtFacility.Column(0) & " Systems Audit " & Date, Me.txtEmailBodyText, True

thanks,

Sam

 




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
Auto Create Signiture JohnUK Outlook and VBA 1 December 27th 06 07:13 AM
Leave on the server & signiture problem Wholesale Outlook Express 15 September 1st 06 02:08 PM
Signiture Creation Software [email protected] Outlook - General Queries 0 August 3rd 06 04:58 PM
why does my signiture text change color when I reply Hall Outlook - General Queries 0 March 22nd 06 07:52 AM
Automate export of Appointment Insert/Update/Delete infomation to the database [email protected] Add-ins for Outlook 2 March 14th 06 03:59 AM


All times are GMT +1. The time now is 08:17 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.