Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 964
Default Need to fix macro to send workbook via email

I'm using the following line of code to send a workbook to a specific
recipient.

Application.Dialogs(xlDialogSendMail).Show "recipient"

It works fine, but the email dialog box remains open (which I want), and the
macro will not continue until the email is either sent or closed. I want the
macro to continue running regardless of whether the user actually hits "Send"
or not.

I've also tried:

ActiveWorkbook.SendMail Recipients:="recipient"

But this automatically sends the email without giving the user a chance to
type anything in the message body of the email.

How can I get the email dialog to appear and remain open for the user to add
a message to, but also keep the macro running? Any ideas?

Using: Excel 2003, GroupWise 8

Thanks in advance!
Elkar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 395
Default Need to fix macro to send workbook via email

I didn't look for your specific topic, but anytime I need code to email from
Excel, I visit:
http://www.rondebruin.nl/sendmail.htm

Also, instead of .send or .show, when I link in to the Outlook object model
to send email, I seem to recall using .display to generate all my emails at
once without sending them; I think they either stay open, and are saved in
the drafts folder

Of course, if you aren't using the Outlook object model to send your mail,
then I have no idea if this helps- sorry!

Keith

"Elkar" wrote:

I'm using the following line of code to send a workbook to a specific
recipient.

Application.Dialogs(xlDialogSendMail).Show "recipient"

It works fine, but the email dialog box remains open (which I want), and the
macro will not continue until the email is either sent or closed. I want the
macro to continue running regardless of whether the user actually hits "Send"
or not.

I've also tried:

ActiveWorkbook.SendMail Recipients:="recipient"

But this automatically sends the email without giving the user a chance to
type anything in the message body of the email.

How can I get the email dialog to appear and remain open for the user to add
a message to, but also keep the macro running? Any ideas?

Using: Excel 2003, GroupWise 8

Thanks in advance!
Elkar

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 To Email recipient one sheet from workbook Doug Excel Discussion (Misc queries) 1 October 3rd 08 05:38 PM
Excel VBA macro to send email attachment from default email client wifigoo Excel Programming 2 April 12th 08 03:54 PM
send 1 sheet of a workbook in email - Excel 07 Kim K Excel Discussion (Misc queries) 10 July 10th 07 05:26 PM
Macro to send email to person in workbook list of users [email protected][_2_] Excel Programming 3 May 19th 07 11:48 AM
How do I send/email macros from my excel workbook to someone else? Drea Excel Worksheet Functions 1 August 10th 05 08:08 PM


All times are GMT +1. The time now is 06:00 AM.

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"