
Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
ya'll are awesome...I have been working on this all day!
> Hi Shawn
>
[quoted text clipped - 44 lines]
> > Application.Dialogs(xlDialogSendMail).Show
> > End Sub
Ron,
I used the script for Mil one sheet in Outlook object model (attachment). I
am trying to apply this macro to a command button in the sheet. The command
button applies:
Private Sub CommandButton1_Click()
Which is expecting and End command. If I delete that nothing happens when I
try the button. What should I do?
Also, if I use display under the lines for OutMail will it stop at the point
where I will have to push the send button for the message to go?
With OutMail
.To = "mark.maycock@gbi.state.ga.us"
.CC = "Central Lab"
'.BCC = ""
.Subject = "Central Lab Weekly WIG Update"
.Body = "Weekly WIG Update"
.Attachments.Add Destwb.FullName
'You can add other files also like this
'.Attachments.Add ("C:\test.txt")
.Send 'or use .Display
> Hi Shawn
>
> See
> http://www.rondebruin.nl/sendmail.htm
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
[quoted text clipped - 42 lines]
> > Application.Dialogs(xlDialogSendMail).Show
> > End Sub
Ron de Bruin - 29 Jan 2008 15:22 GMT
Use only this line in the click event
Call MacroName
> Also, if I use display under the lines for OutMail will it stop at the point
> where I will have to push the send button for the message to go?
Correct
Download the example workbook from my site and you will see it

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Ron,
> I used the script for Mil one sheet in Outlook object model (attachment). I
[quoted text clipped - 67 lines]
>> > Application.Dialogs(xlDialogSendMail).Show
>> > End Sub
Shawn - 29 Jan 2008 16:52 GMT
Hate to seem stupid but where do I insert Call MacroName and do I replace
Name with something else?
> Use only this line in the click event
>
[quoted text clipped - 77 lines]
> >> > Application.Dialogs(xlDialogSendMail).Show
> >> > End Sub
Ron de Bruin - 29 Jan 2008 17:16 GMT
If the name of the mail macro in your standard module = MailSingleSheet
Then the click event in the sheet module looks like this
Private Sub CommandButton1_Click()
call MailSingleSheet
End Sub

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Hate to seem stupid but where do I insert Call MacroName and do I replace
> Name with something else?
[quoted text clipped - 80 lines]
>> >> > Application.Dialogs(xlDialogSendMail).Show
>> >> > End Sub
Shawn - 30 Jan 2008 16:16 GMT
I changed the button from command button to a tool bar button so it would not
show on the emailed page. Now I need to change from ActiveSheet to a
designated sheet or the button may send the wrong sheet. Also I am trying to
set up an additional button that will mail the first three worksheets in the
workbook. I looked at your instructions for mailing multiple sheets and I
don't understand where I substitute in the macro the sheet names that I need
to be mailed. Help again please!
> If the name of the mail macro in your standard module = MailSingleSheet
>
[quoted text clipped - 88 lines]
> >> >> > Application.Dialogs(xlDialogSendMail).Show
> >> >> > End Sub
Ron de Bruin - 30 Jan 2008 16:48 GMT
http://www.rondebruin.nl/mail/folder1/mail3.htm
Read the info above the macro
This sub will send a newly created workbook with just the sheets in the Array.
Sourcewb.Sheets(Array("Sheet1", "Sheet3")).Copy

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
>I changed the button from command button to a tool bar button so it would not
> show on the emailed page. Now I need to change from ActiveSheet to a
[quoted text clipped - 96 lines]
>> >> >> > Application.Dialogs(xlDialogSendMail).Show
>> >> >> > End Sub
Shawn - 30 Jan 2008 17:51 GMT
Sourcewb.Sheets(Array("Index", "MailSheet(s)")).Copy
In the above line do I substitute the name of my pages in "Index" and leave
Mailsheet(s) in. Also do I use the name of my sheets or Sheet1,Sheet2..etc.
I can't seem to get it to work on this one
> http://www.rondebruin.nl/mail/folder1/mail3.htm
>
[quoted text clipped - 104 lines]
> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
> >> >> >> > End Sub
Ron de Bruin - 31 Jan 2008 15:37 GMT
You use the names of the sheets you want to send

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Sourcewb.Sheets(Array("Index", "MailSheet(s)")).Copy
> In the above line do I substitute the name of my pages in "Index" and leave
[quoted text clipped - 109 lines]
>> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
>> >> >> >> > End Sub
Shawn - 31 Jan 2008 19:16 GMT
What is the real difference between the macro for sending multiple pages with
the SendMail method compared to the ones for sending multiples using Outlook
object model. I can't really tell the difference and maybe that is why I
cannot get it to work on my end.
> You use the names of the sheets you want to send
>
[quoted text clipped - 111 lines]
> >> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
> >> >> >> >> > End Sub
Ron de Bruin - 31 Jan 2008 20:17 GMT
Above the SendMail macro you can read it
Note: With SendMail it is not possible to
1) Send text in the Body of the mail
2) Use the CC or BCC field
3) Attach other files
Send me the file private and tell me which sheets you want to mail

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> What is the real difference between the macro for sending multiple pages with
> the SendMail method compared to the ones for sending multiples using Outlook
[quoted text clipped - 116 lines]
>> >> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
>> >> >> >> >> > End Sub
Shawn - 31 Jan 2008 20:33 GMT
I have sent it to the email address on your website! Thanks again!
> Above the SendMail macro you can read it
>
[quoted text clipped - 125 lines]
> >> >> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
> >> >> >> >> >> > End Sub
Ron de Bruin - 31 Jan 2008 20:52 GMT
I send you the file back with a example

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
>I have sent it to the email address on your website! Thanks again!
>
[quoted text clipped - 127 lines]
>> >> >> >> >> >> > Application.Dialogs(xlDialogSendMail).Show
>> >> >> >> >> >> > End Sub