Copy cells if condition met and paste into body of email

jmcconnell

New Member
Joined
Feb 2, 2019
Messages
35
Hi. I'm a beginner so bare with me.

I've got a worksheet called curtailments and I'm working with the data below:

Site nameUnit IDAgentEntity(MW)Start timeStart dateCease timeCease Date
Batsworthy CrossODFM44-01TestCo1Entity110010:0005/05/202016:0005/05/2020
Denzel DownsODFM45-01TestCo1Entity120011:0005/05/202015:0005/05/2020
ForssODFM42-01TestCo1Entity1010:0005/05/202016:0005/05/2020
Little RaithODFM80-01TestCo1Entity1011:0005/05/202015:0005/05/2020

The table contents may not always be in this order and the date and times can vary. Therefore I would like to copy the 'Site name', 'start date' and 'time' if for example the table contains 'Forss' and paste them into the body of an email. I know the code on how to access outlook etc.

I can get it to copy the entire row and I can paste that row into another worksheet (There's plenty of examples online) but I can't copy specific cells and get them into the body of an email.

Any help would be much appreciated!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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