Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 7th, 2006, 05:54 AM
Registered User
 
Join Date: Dec 2005
Location: , , Germany.
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

Reply With Quote
  #2 (permalink)  
Old January 23rd, 2006, 09:45 PM
Authorized User
 
Join Date: Dec 2005
Location: , , .
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 :)

Reply With Quote
  #3 (permalink)  
Old January 24th, 2006, 07:09 AM
Registered User
 
Join Date: Dec 2005
Location: , , Germany.
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

Reply With Quote
  #4 (permalink)  
Old November 8th, 2007, 06:11 AM
Registered User
 
Join Date: Nov 2007
Location: , , .
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


Reply With Quote
  #5 (permalink)  
Old May 31st, 2009, 08:04 AM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Reply With Quote
  #6 (permalink)  
Old June 21st, 2009, 10:19 PM
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
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)
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:07 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.