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
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

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///
 

Watch MrExcel Video

Forum statistics

Threads
1,108,448
Messages
5,523,043
Members
409,494
Latest member
Itsmeerc

This Week's Hot Topics

Top