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

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
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,214,798
Messages
6,121,635
Members
449,043
Latest member
farhansadik

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