Email Command Button with Cell value in Subject Line?

jonbh10

New Member
Joined
Feb 26, 2010
Messages
19
Hi,

Sorry but I can't seem to get this to work? I wish to instead of having populated subject as per in " " below, I would like to populate the subject line of the email with a particular cell value?

My current code:

Private Sub Emailform_Click()
Application.Dialogs(xlDialogSendMail).Show "
jon@jon.com", "enter here"
End Sub


Thanks in advance
Jon
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

jonbh10

New Member
Joined
Feb 26, 2010
Messages
19
If I wanted to have different cells e.g. A1 and B35 both included within the subject line how should i write this?

Cheers
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092

ADVERTISEMENT

Like this?

Application.Dialogs(xlDialogSendMail).Show "jon@jon.com", Range("A1").Value & " " & Range("B35").Value
 

harishnehru

New Member
Joined
Aug 7, 2012
Messages
1
Hi,

Can you please help with my query. I need a Button on the sheet will will check the mandatory cells (C12, C14, C16, C18) before emailing to info@abc.com and picking the Subject from cell C10.

I am not expert in excel. Please advise in step by step on which type of button to add (activeX or form). The code to be added in "ThisWorkBook" or in Sheet1.

Thanks in advance///
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,712
Messages
5,833,266
Members
430,200
Latest member
ADLHMA2022

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
Top