Sending email from a selected row with body text from multiple cells

Excel_Test_21

New Member
Joined
Aug 8, 2021
Messages
16
Office Version
  1. 365
Platform
  1. Windows
Hello,
I need help creating a code to generate an email when I select a specific row.

For example: if my cursor is cell C4, I want specific cells in that row to populate in the email body as a reference and subject line
if I put the mouse cursor in C2 or C3 i would want the results from that row as followed.

subject would be A4 - B4 C4 - D4 - E4
body would be in separate lines

A4
B4 C4
D4
E4
F4
G4

1628413556818.png



I found a way to create this ribbon button and just need to active it with a code
1628413836452.png
 
After several searches I found this post and it was exactly what I was looking for. I also needed to include a link to a file located on a server. Perfect for my use case and in this case so much better than the =Hyperlink() function.
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Hello and welcome to the Forum. :) Please start your own new thread and paste a link to this thread if you found it useful.
 
Upvote 0
This code is working fine.

I want to attach file to the email. Path for this file is added in separate column, (Column H), Can you help me for the same.
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

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