VBA code to send emails for each Transaction Reference #

dougdrex

Board Regular
Joined
Sep 27, 2013
Messages
79
Hi I'm using Excel 2010.

I need to send out emails with a subset of the data in an Excel file. Here is some helpful information about the data itself:
  • The data is populated in columns A - T.
  • Row 1 is a header row. Then there are nearly 300 rows of data.
  • Column F contains the Transaction Reference #. There are at least 2 rows of data for each Transaction Reference #, and sometimes up to 10 rows.
  • Column Q contains the Maker ID (email address).
  • Column S contains the Checker ID (email address).

Below are the things the VBA code will need to do:
  1. There should be a separate email message for each Transaction Reference #.
  2. Populate the email address from Column S (Checker ID) in the “To” field (same in each row for the Transaction Reference #).
  3. Populate the email address from Column Q (Maker ID) in the “CC” field (same in each row for the Transaction Reference #).
  4. Populate the email “Subject” field with predetermined verbiage that will include the Transaction Reference #.
  5. Populate the body of the email with several components:

  • Predetermined text verbiage
  • The header row from the data (Row 1, Columns A – T).
  • Each row of data containing the specific Transaction Reference # in Column F (include Columns A – T).
  • Signature

Please let me know if there are any details that are not clear. It might be less complicated than I’m imagining, but I’m not a VBA expert so it certainly seems intimidating. :confused:


Thanks!
Doug
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Bump

If my explanation needs clarification, please let me know (and specify which part). This is the last part of a macro that I'm creating and would love to be able to finish. :)
 
Upvote 0

Forum statistics

Threads
1,224,759
Messages
6,180,813
Members
452,996
Latest member
nelsonsix66

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