Application.Dialogs(xlDialogSendMail).Show... help?

jonbh10

New Member
Joined
Feb 26, 2010
Messages
19
Hi,

I have the following code to add the workbook to outlook and auto insert the email address.

Private Sub Email_Click()
Application.ScreenUpdating = False
Application.Dialogs(xlDialogSendMail).Show "jon@abc.com", Range("B15").Value
Application.ScreenUpdating = True
End Sub

I can't seem to add 2 email addresses in?

I've tried... and many similar combinations.

Private Sub Email_Click()
Application.ScreenUpdating = False
Application.Dialogs(xlDialogSendMail).Show "jon@abc.com; jon@def.com", Range("B15").Value
Application.ScreenUpdating = True
End Sub

However, this doesn't look the email addresses. It only works if only 1 address is within the code.

Any ideas or alternatives would be great.
Thanks
Jon
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi,

try the below change

Code:
Application.Dialogs(xlDialogSendMail).Show "[EMAIL="jon@abc.com"]jon@abc.com[/EMAIL];" & "[EMAIL="jon@def.com"]jon@def.com[/EMAIL];", Range("B15").Value
 
Upvote 0

Forum statistics

Threads
1,224,536
Messages
6,179,402
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top