Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Mailing from Excel and message question

I have a workbook that will email itself to a list of people and then
perform a series of actions in a macro. I have a couple of questions.

1. I am using the SendMail function and it allows me to list recipients and
put a subject in the subject line but will not allow me to add a message,
any ideas on how to add a message?

2. after the step above the macro performs a number of operations that take
some time (20-30 seconds). I would like to have a message box that tells
the user to wait while the operation takes place and then say the worksheet
will close in 5 seconds. The available message box choices I can find have
buttons that require the user to reply by pressing the OK button and the
macro will not continue until this is done. Is there a way to display only
a box with no buttons that contains a message? Also is there an easy way to
display a countdown timer for the 5 second box?

Thanks for you help in advance

ZABU


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Mailing from Excel and message question

Sendmail provides a simple command interface, but what can be done is
limited. There is no provision for putting in a message.

you can use other methods. See these sites:

Dick Kusleika's site

http://www.dicks-clicks.com/excel/olSending.htm

Ron de Buin's site

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

you can put up a modeless userform if your users are using xl2000 or later.
Then have you code unload it at the end.

Your code would have to do the counting down (and updating of the count in
the userform) - Excel VBA isn't multithreaded.

--
Regards,
Tom Ogilvy

"ZABU" wrote in message
...
I have a workbook that will email itself to a list of people and then
perform a series of actions in a macro. I have a couple of questions.

1. I am using the SendMail function and it allows me to list recipients

and
put a subject in the subject line but will not allow me to add a message,
any ideas on how to add a message?

2. after the step above the macro performs a number of operations that

take
some time (20-30 seconds). I would like to have a message box that tells
the user to wait while the operation takes place and then say the

worksheet
will close in 5 seconds. The available message box choices I can find

have
buttons that require the user to reply by pressing the OK button and the
macro will not continue until this is done. Is there a way to display

only
a box with no buttons that contains a message? Also is there an easy way

to
display a countdown timer for the 5 second box?

Thanks for you help in advance

ZABU




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Mailing from Excel and message question

Hi ZABU,

The links from Tom are very wonderful on sedning email in Excel.
Furthermore, I'd also suggest the two kb articles may provide some
assistance for you.
816644 How to Send a Range of Cells in E-Mail by Using VBA
http://support.microsoft.com/?id=816644

185774 How to Programmatically Manipulate a UserForm
http://support.microsoft.com/?id=185774

I'd also suggest the "Progress Indicator" sample from j-walk.com will help
you a lot in this issue which is available from the lnk:
http://www.j-walk.com/ss/excel/files/developer.htm

In addition, since the sending mail operation will spend some time. You can
also show one processbar in Excel status. The processbar sample from David
Wiseman for Excel may help you some in this scenario. This sample is also
located from this link:
Control the LED Display in the StatusBar
http://www.j-walk.com/ss/excel/files/developer.htm

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
I need to import my Excel Mailing list into mailing label format. Gord Dibben Excel Discussion (Misc queries) 0 November 5th 09 10:16 PM
I need to import my Excel Mailing list into mailing label format. Lyn Excel Discussion (Misc queries) 0 November 5th 09 08:11 PM
Message box question WH99 Excel Discussion (Misc queries) 5 April 5th 08 12:41 AM
Simple message box question zeyneddine Excel Discussion (Misc queries) 1 August 14th 06 08:23 PM
how do i convert MS Word mailing labels into an Excel mailing lis. unrhyll Excel Discussion (Misc queries) 1 February 4th 05 12:19 AM


All times are GMT +1. The time now is 02:06 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"