#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Email

Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail box's I
would like to have the To: and CC: fields completed automatically. Can this
be acheived from the macro run in excel.

Thanks
Richard
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Email

This dialog takes 3 parameters, recipients, subject and return_receipt.

So you can use

Application.Dialogs(xlDialogSendMail).Show
","W ork update"

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richard" wrote in message
...
Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using
Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail box's
I
would like to have the To: and CC: fields completed automatically. Can
this
be acheived from the macro run in excel.

Thanks
Richard



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Email

Apologies I hope I'm not being totally thick, but I now get the following:

Compile error:
Expected: line number or label or statement or end of statement

"Bob Phillips" wrote:

This dialog takes 3 parameters, recipients, subject and return_receipt.

So you can use

Application.Dialogs(xlDialogSendMail).Show
","W ork update"

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richard" wrote in message
...
Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using
Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail box's
I
would like to have the To: and CC: fields completed automatically. Can
this
be acheived from the macro run in excel.

Thanks
Richard




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Email

Probably wrap-around, try

Application.Dialogs(xlDialogSendMail).Show _
","W ork update"


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richard" wrote in message
...
Apologies I hope I'm not being totally thick, but I now get the following:

Compile error:
Expected: line number or label or statement or end of statement

"Bob Phillips" wrote:

This dialog takes 3 parameters, recipients, subject and return_receipt.

So you can use

Application.Dialogs(xlDialogSendMail).Show
","W ork update"

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Richard" wrote in message
...
Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using
Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail
box's
I
would like to have the To: and CC: fields completed automatically. Can
this
be acheived from the macro run in excel.

Thanks
Richard






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Email

That is fantastic and suits me just fine. Thanks very much

"Bob Phillips" wrote:

Probably wrap-around, try

Application.Dialogs(xlDialogSendMail).Show _
","W ork update"


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Richard" wrote in message
...
Apologies I hope I'm not being totally thick, but I now get the following:

Compile error:
Expected: line number or label or statement or end of statement

"Bob Phillips" wrote:

This dialog takes 3 parameters, recipients, subject and return_receipt.

So you can use

Application.Dialogs(xlDialogSendMail).Show
","W ork update"

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Richard" wrote in message
...
Hi

I am using a macro to drop completed workbooks, or parts of completed
workbooks into an email, using
Application.Dialogs(xlDialogSendMail).Show.

As the various mails are sent to specific groups or department mail
box's
I
would like to have the To: and CC: fields completed automatically. Can
this
be acheived from the macro run in excel.

Thanks
Richard






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
Using Macro how to create email link for the email addresses in aRange or Selection Satish[_2_] Excel Worksheet Functions 8 December 28th 09 03:30 PM
how do you email a portion of a worksheet (range) as an insert into the body of an email? Bruce[_2_] Excel Programming 3 May 31st 07 10:37 PM
can I copy a column of email addresses, paste into email address? Lizizfree New Users to Excel 4 July 20th 06 10:03 PM
Transfer Email addresses from spreadsheet to email address book Beana Excel Discussion (Misc queries) 2 May 30th 06 06:07 PM
Email editor closes when forwarding Excel-embedded email Bambina Setting up and Configuration of Excel 0 March 16th 06 10:45 PM


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