Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Mail Worksheet as (html) message body

Excel has a nice shortcut button to open an email dialog window. You can
get at this programmatically by:

Application.EnvelopeWindow = True

The problem is how (via the object model) to get to each textbox entry
"From", "To", "Cc" and "Subject".

Then how to hit the "Send This Sheet" button programmatically. I can get
to this button via SendKeys but that, of course, is problematical since
Excel will need to have the focus - which it cannot in this application.

I can't find how all this fits into the Excel object model. Most
maddeningly, the macro recorder goes blind the instant you click on the
[mail] button. Can anyone give me hints on how to access these functions
properly from within VBA? Its got to be in there - no?

So simple to do via mouse & keyboard :-(
Thomas Bartkus


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 135
Default Mail Worksheet as (html) message body

Thomas, see if this page will help,

http://www.rondebruin.nl/sendmail.htm#Workbook.

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 97
** remove news from my email address to reply by email **
"Thomas Bartkus" wrote in message
news:pan.2004.01.12.02.17.07.418161@bartkusconsult ing.com...
Excel has a nice shortcut button to open an email dialog window. You can
get at this programmatically by:

Application.EnvelopeWindow = True

The problem is how (via the object model) to get to each textbox entry
"From", "To", "Cc" and "Subject".

Then how to hit the "Send This Sheet" button programmatically. I can get
to this button via SendKeys but that, of course, is problematical since
Excel will need to have the focus - which it cannot in this application.

I can't find how all this fits into the Excel object model. Most
maddeningly, the macro recorder goes blind the instant you click on the
[mail] button. Can anyone give me hints on how to access these functions
properly from within VBA? Its got to be in there - no?

So simple to do via mouse & keyboard :-(
Thomas Bartkus




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add link to specific Excel worksheet in HTML Outlook message [email protected] Links and Linking in Excel 4 May 17th 23 11:47 AM
Importing html documents into Excel adds rows to the body. Dave Murdock Excel Discussion (Misc queries) 1 April 14th 09 01:58 AM
Copying Excel 2003 Selection into Outlook 2003 HTML E-Mail Message [email protected] Excel Discussion (Misc queries) 0 July 10th 06 03:07 PM
Excel(with hyperlinks) as a message body of outlook mail hans Excel Discussion (Misc queries) 1 July 7th 06 12:35 PM
E-mail as message body not attachment Larry Empey Excel Programming 1 September 2nd 03 04:00 AM


All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"