A very simple example of the spreadsheet I am working with:
COMPANY INVOICE EMAIL
ABC Truck F1334 Mike@abc.com
ABC Truck F1244 Mike@abc.com
ABC Truck F1254 Mike@abc.com
A1 Freight F1543 Steve@a1.com
B&G Truck F1555 Bob@BG.com
B&G Truck F1556 Bob@BG.com
I have a macro that will send one email per line so that they get a seperate notice of each invoice but but there can be hundreds of lines per email address per day that need to be sent so I want it to group all lines for each company onto a single email so that in this example it would send 3 instead of 6.
I'm looking for a way to find all occurences of the same company name and paste that range into the body of the email but I can't figure it out.
(Prefereably it would only show cells that are not hidded or that I can specify in the macro but I'll take the whole row if that's all I can get...)
Any help or direction at all would be GREAT!!
COMPANY INVOICE EMAIL
ABC Truck F1334 Mike@abc.com
ABC Truck F1244 Mike@abc.com
ABC Truck F1254 Mike@abc.com
A1 Freight F1543 Steve@a1.com
B&G Truck F1555 Bob@BG.com
B&G Truck F1556 Bob@BG.com
I have a macro that will send one email per line so that they get a seperate notice of each invoice but but there can be hundreds of lines per email address per day that need to be sent so I want it to group all lines for each company onto a single email so that in this example it would send 3 instead of 6.
I'm looking for a way to find all occurences of the same company name and paste that range into the body of the email but I can't figure it out.
(Prefereably it would only show cells that are not hidded or that I can specify in the macro but I'll take the whole row if that's all I can get...)
Any help or direction at all would be GREAT!!