Hey!
I'm looking for some assistance in getting me in the right direction. I would like to automate e-mailing multiple vendors from a spreadsheet I would export from SAP and touch up. It would look something like this table. I want to get the rows for each vendor into the email body addressed just to that vendor, without sending multiple e-mails to the same vendor.
Is this type of automation possible with VBA code?
[TABLE="class: grid, width: 1000"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Description[/TD]
[TD]QTY[/TD]
[TD]Vendor[/TD]
[TD]Release Date[/TD]
[TD]Contact[/TD]
[TD]E-mail Address[/TD]
[/TR]
[TR]
[TD]partnumberA[/TD]
[TD]screw A[/TD]
[TD]100[/TD]
[TD]vendor A[/TD]
[TD]5/15/2017[/TD]
[TD]Jon[/TD]
[TD]vendorA@vendorA.com[/TD]
[/TR]
[TR]
[TD]partnumberB[/TD]
[TD]screw B[/TD]
[TD]100[/TD]
[TD]vendor B[/TD]
[TD]5/15/2017[/TD]
[TD]Randy[/TD]
[TD]vendorB@vendorB.com[/TD]
[/TR]
[TR]
[TD]partnumberC[/TD]
[TD]screw C[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberCC[/TD]
[TD]screw D[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberCCC[/TD]
[TD]screw E[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberD[/TD]
[TD]screw F[/TD]
[TD]100[/TD]
[TD]vendor D[/TD]
[TD]5/15/2017[/TD]
[TD]Sarah[/TD]
[TD]vendorD@vendorD.com[/TD]
[/TR]
[TR]
[TD]partnumberE[/TD]
[TD]screw G[/TD]
[TD]100[/TD]
[TD]vendor E[/TD]
[TD]5/16/2017[/TD]
[TD]Clara[/TD]
[TD]vendorE@vendorE.com[/TD]
[/TR]
[TR]
[TD]partnumberE[/TD]
[TD]screw H[/TD]
[TD]100[/TD]
[TD]vendor E[/TD]
[TD]5/16/2017[/TD]
[TD]Clara[/TD]
[TD]vendorE@vendorE.com[/TD]
[/TR]
</tbody>[/TABLE]
I'm looking for some assistance in getting me in the right direction. I would like to automate e-mailing multiple vendors from a spreadsheet I would export from SAP and touch up. It would look something like this table. I want to get the rows for each vendor into the email body addressed just to that vendor, without sending multiple e-mails to the same vendor.
Is this type of automation possible with VBA code?
[TABLE="class: grid, width: 1000"]
<tbody>[TR]
[TD]Material[/TD]
[TD]Description[/TD]
[TD]QTY[/TD]
[TD]Vendor[/TD]
[TD]Release Date[/TD]
[TD]Contact[/TD]
[TD]E-mail Address[/TD]
[/TR]
[TR]
[TD]partnumberA[/TD]
[TD]screw A[/TD]
[TD]100[/TD]
[TD]vendor A[/TD]
[TD]5/15/2017[/TD]
[TD]Jon[/TD]
[TD]vendorA@vendorA.com[/TD]
[/TR]
[TR]
[TD]partnumberB[/TD]
[TD]screw B[/TD]
[TD]100[/TD]
[TD]vendor B[/TD]
[TD]5/15/2017[/TD]
[TD]Randy[/TD]
[TD]vendorB@vendorB.com[/TD]
[/TR]
[TR]
[TD]partnumberC[/TD]
[TD]screw C[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberCC[/TD]
[TD]screw D[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberCCC[/TD]
[TD]screw E[/TD]
[TD]100[/TD]
[TD]vendor C[/TD]
[TD]5/17/2017[/TD]
[TD]Bob[/TD]
[TD]vendorC@vendorC.com[/TD]
[/TR]
[TR]
[TD]partnumberD[/TD]
[TD]screw F[/TD]
[TD]100[/TD]
[TD]vendor D[/TD]
[TD]5/15/2017[/TD]
[TD]Sarah[/TD]
[TD]vendorD@vendorD.com[/TD]
[/TR]
[TR]
[TD]partnumberE[/TD]
[TD]screw G[/TD]
[TD]100[/TD]
[TD]vendor E[/TD]
[TD]5/16/2017[/TD]
[TD]Clara[/TD]
[TD]vendorE@vendorE.com[/TD]
[/TR]
[TR]
[TD]partnumberE[/TD]
[TD]screw H[/TD]
[TD]100[/TD]
[TD]vendor E[/TD]
[TD]5/16/2017[/TD]
[TD]Clara[/TD]
[TD]vendorE@vendorE.com[/TD]
[/TR]
</tbody>[/TABLE]