SendMail Macro in Excel 2016

stevewood1

New Member
Joined
Oct 11, 2018
Messages
16
Hello,
I wonder if anyone can help me with a Macro issue.
We have an Excel form with a Macro that automatically emails the workbook. The line of code that does this is

ThisWorkbook.SendMail Range("Welcome!R3"), Range("Welcome!R6")
Where R3 contains the email address to send the email and R6 contains the subject line.
This is working fine with Excel and Outlook 2010 which is what I'm using but one of our offices has recently upgraded to Office 2016 and since are finding that the subject line is always blank.

I don't really have access to Office 2016 at the moment. I've had a quick look on someone else's computer but the subject line is either blank or a few foreign characters.

Does anyone have any ideas about what could be causing this and how I can resolve it?

Many thanks
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this

Code:
[COLOR=#333333]ThisWorkbook.SendMail sheets("[/COLOR][COLOR=#333333]Welcome").[/COLOR][COLOR=#333333]Range("R3").value, sheets("[/COLOR][COLOR=#333333]Welcome").[/COLOR][COLOR=#333333]Range("R6").value[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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