Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 7th, 2006, 05:54 AM
Registered User
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to matpen
Default reading a html doc into outlook body message

I am trying to read a HTML document into the body of outlook message without success, here is the scenario:

1.)write the letter using word 2003.
2.)save the letter as HTML (so that all formatting and logo appears also in the eMail)
3.)Start outlook and read the saved HTML letter into the body of outlook
4.)fill the fields (to, subject etc..)
display or send the letter

It should all happen programatically from WORD 2003. I wonder if somebody have an idea of how to realise this?
Thanks in advance
Elie Matpen

 
Old January 23rd, 2006, 09:45 PM
Authorized User
 
Join Date: Dec 2005
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to zach007
Default

Hi,

I am not sure what you mean but please have a look to this link:

http://www.slipstick.com/emo/2004/up040415.htm#RULES

Is that help? please let me know...

Thanks :)

 
Old January 24th, 2006, 07:09 AM
Registered User
 
Join Date: Dec 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to matpen
Default

Hi Zack
No the link you gave does not help. Anyway the problem has been already solved! It took me 4 days of trial and error (MSDN, VBA help) before I could overcome the problem. Now it is all fine!
Thanks for the feed-back
matpen

 
Old November 8th, 2007, 06:11 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Mapten,

I am working on a solution that has same requirements you posted, except that I use docx format.
Could you please let me know (provide sample code etc..) how you solved the below points programmatically.

1. In what format you saved word to html (mht or html with _files folder where the images/headers are stored)
2. how did you saved the html letter in to the body of outlook
3. Does it display content + images/logos


Any help would be greatly appreciated,
Kris


 
Old May 31st, 2009, 08:04 AM
Registered User
 
Join Date: May 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by matpen View Post
Hi Zack
No the link you gave does not help. Anyway the problem has been already solved! It took me 4 days of trial and error (MSDN, VBA help) before I could overcome the problem. Now it is all fine!
Thanks for the feed-back
matpen
Hi Matpen,

I noticed your post. I am looking for a method to read a mht file from disk and have it as the outlook body of an email..

Any pointers or code snippet you could provide will be greatly appreciated.

Regards

Meir R.
 
Old June 21st, 2009, 10:19 PM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Hi

You can have a look at this:

http://vbadud.blogspot.com/2009/05/h...tlook-vba.html

it worked for HTML file ..

Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
open text and add to outlook body mlov83 BOOK: Professional Outlook 2007 Programming ISBN: 978-0-470-04994-5 0 February 16th, 2008 08:48 AM
Excel VBA - Send email with html message body elad Excel VBA 1 July 16th, 2007 03:28 PM
Reading outlook message files RR General .NET 1 April 21st, 2006 05:42 AM
Message.Body HELP!!!!!!!! PCnGA_30008 General .NET 0 June 30th, 2004 12:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.