Forum Discussion
Ange-M_1973
Jan 15, 2023Copper Contributor
VBA Email for Excel - insert cell information into subject line
I am using the VBA code set out in the following site: https://www.simplilearn.com/tutorials/excel-tutorial/send-email-in-excel I have not included any of the CC/BCC or attachment options. The emai...
HansVogelaar
Jan 15, 2023MVP
Change the line
NewEmailItem.Subject = "Test Email Demo”
to
NewEmailItem.Subject = "Message for " & Range("A" & ActiveCell.Row).Value
or something similar.
Ange-M_1973
Jan 15, 2023Copper Contributor
Hi Hans
thanks for your help, but I am still having trouble with this, as the adjustments did not work.
Cheers
Ang
thanks for your help, but I am still having trouble with this, as the adjustments did not work.
Cheers
Ang
- HansVogelaarJan 15, 2023MVP
What exactly was the problem?
- Ange-M_1973Jan 15, 2023Copper ContributorThe subject line says "Message for" and does not relate to the subject line.
- HansVogelaarJan 15, 2023MVP
I thought you wanted to take the name from column A in the row of the active cell.
Your result make me think that that cell was empty.