Help with Emailing Details of Tables for Unique Cell Values

tranchey

New Member
Joined
Aug 5, 2021
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi there,

I'm working on a macro to format some payment remittance information and automatically notify vendors that a payment has been remitted.
So far I'm able to get the remittance information in the following format:

1657909863195.png


I'm struggling with now getting the macro to cycle through each unique vendor and create an e-mail including that vendor's specific payment information.
I don't want an e-mail for each invoice, just one per vendor. Since there could be a variable number of vendors each with a variable number of payments, I was hoping to create an e-mail for each vendor and summarizing the information as in the following examples to the Hydro and Telephone Vendors:

1657916485659.png
1657916562422.png


The key piece I'm looking for is the ability to create one e-mail per vendor and populate the body of the e-mail with the cell value from the C Column (for the total remittance amount) and then the table in columns D & E to detail the amount for each invoice.

Any help is greatly appreciated!

Thanks very much.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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