Add multiple lines to one email if multiple conditions are met

Mikiward

New Member
Joined
Jan 28, 2023
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi All,

Hoping you might be able to help..

I've created a VBA code that sends a email when the value in a column to its right is not the same as the value entered in the column entered to its left...

I have 22 columns it does this for , 1st column is the previous value and the second volume is the current value.

For example;
Column 1 is "WTP Feed rate previous value" and Column 2 is "WTP Feed rate current value"

The current value columns actually populate off another sheet where Feed rates are updated. So in the case a feed rate changes , my VBA code will send a email , listing the date the column was changed for (there is a column also with dates) as well as the previous value and current value. Once this is done it will the copy the current value to the previous value.

Given I have multiple columns which are for tracking different Feed rates , I would like to not have to send a email for each different column that changes but rather add a new line to the 1 email.
For example if column 3 differs to 4 add a new line with the changed values to the original already opened email.
I'd like to do this for all 22 columns ...so it creates a list of the changed values in the one email I'm the body text.

Is this possible?

Thanks!!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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