Adding Subject to automatic email from excel

Luke1690

Board Regular
Joined
Jul 26, 2022
Messages
106
Office Version
  1. 2016
Platform
  1. Windows
HI,

thanks for your help guys ive asked a few questions already and got answers back straight away. im a beginner and just getting by using snippets of code.

with this question im sending the workbook as an attachment using outlook.
i can send the email no problem. i want to add a Subject to the email i want to pull the subject from a specific cell within the work book.
please can someone tell me the code for this?

i tried the below with no luck, im a beginner so take it easy.

emailitem.Subject = Range.("d7")
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
HI,

thanks for your help guys ive asked a few questions already and got answers back straight away. im a beginner and just getting by using snippets of code.

with this question im sending the workbook as an attachment using outlook.
i can send the email no problem. i want to add a Subject to the email i want to pull the subject from a specific cell within the work book.
please can someone tell me the code for this?

i tried the below with no luck, im a beginner so take it easy.

emailitem.Subject = Range.("d7")
sorted thankyou
 
Upvote 0
Good to hear you got a solution.

If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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