![]() |
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
|
|||
|
|||
![]() I need to generate HTML email using Access 2007/Outlook 2007. I have enough experience with VBA to gin up the code, but Outlook 2007 is something of a mystery to me. Here's what I've tried: 1. created an .oft template 2. attempted to insert text into the template like this Code: -------------------- Set olApp = GetObject(, "Outlook.Application") Set olmi = olApp.CreateItemFromTemplate(strOftPath) olmi.HTMLBody = "HTMLBODYtext here/BODY/HTML" -------------------- Unfortunately, this overwrites all the nice logos and such I had put in the template. Should I be using a Outlook Template or Form? I like the idea of using templates because they are discrete files that (hopefully) users can administer if they want to change logos/colors, etc. Since I can store formatted Rich Text in an Access Memo field, I was thinking I could just dump that into the .oft - or use bookmarks in the .oft to insert predefined blocks of text, like a NameAddress block. Can I do that with an .oft? Or should I use an Outlook form? What are some good resources for programming .oft templates? -- deko http://forums.slipstick.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Form/Template for non-Outlook users | lia | Outlook - Using Forms | 1 | October 1st 07 02:49 PM |
List Box in Form Template | knowshowrosegrows | Outlook - Using Forms | 1 | December 6th 06 09:15 PM |
Form Template | Fi | Outlook - Using Forms | 2 | November 16th 06 07:32 PM |
Convert Template to Form | [email protected] | Outlook - General Queries | 4 | August 31st 06 02:28 PM |
How do I use form fields in an email template? | Ann | Outlook - Using Forms | 1 | April 27th 06 08:23 PM |