Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default send email in VBA


I am trying to send an email from within Excel VBA. I am currently
using a Shell command because I just want the email to open so the user
has the option to click send or do whatever else. I have 2 questions:

1.) If I use the shell command method, is there a way to check and see
if the email message is ready? Does it have a ready state to poll?

2.)If I use the .sendmail method, is there a way to have the email
brought up in a window?


--
lcoreyl
------------------------------------------------------------------------
lcoreyl's Profile: http://www.excelforum.com/member.php...fo&userid=2042
View this thread: http://www.excelforum.com/showthread...hreadid=384051

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default send email in VBA

Hi lcoreyl

1)
I don't understand this one
I have some Shell example code here
http://www.rondebruin.nl/mail/oebody.htm


2)
.SendMail "", "This is the Subject line"

don't fill in the address

If you use Outlook code then use Display in the code
See my site for examples
http://www.rondebruin.nl/sendmail.htm




--
Regards Ron de Bruin
http://www.rondebruin.nl


"lcoreyl" wrote in message
...

I am trying to send an email from within Excel VBA. I am currently
using a Shell command because I just want the email to open so the user
has the option to click send or do whatever else. I have 2 questions:

1.) If I use the shell command method, is there a way to check and see
if the email message is ready? Does it have a ready state to poll?

2.)If I use the .sendmail method, is there a way to have the email
brought up in a window?


--
lcoreyl
------------------------------------------------------------------------
lcoreyl's Profile: http://www.excelforum.com/member.php...fo&userid=2042
View this thread: http://www.excelforum.com/showthread...hreadid=384051



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default send email in VBA


.Display is what I was looking for. Thanks!

--
lcorey
-----------------------------------------------------------------------
lcoreyl's Profile: http://www.excelforum.com/member.php...nfo&userid=204
View this thread: http://www.excelforum.com/showthread.php?threadid=38405

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
send email to each customer email in excel sheet. -keevill- Excel Discussion (Misc queries) 3 July 17th 08 02:33 PM
Send Email PeterM Excel Discussion (Misc queries) 1 June 25th 08 06:31 AM
send wkbk as an email attachment with an email address copied from SueInAtl Excel Discussion (Misc queries) 0 May 21st 07 10:53 PM
body of email disappears when I send an email from Excel ~A Excel Discussion (Misc queries) 0 February 25th 05 10:55 PM
send email msg nuExcel[_3_] Excel Programming 0 June 4th 04 01:36 AM


All times are GMT +1. The time now is 10:23 AM.

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

About Us

"It's about Microsoft Excel"