strangejosh
New Member
- Joined
- Jul 30, 2022
- Messages
- 15
- Office Version
- 2019
- Platform
- Windows
Hello,
This takes me forever to do manually. I was hoping someone here could help me automate with a VBA script!!
Please see below example. I am not great with VBA so I could use some help please! I need to filter by unique vendor number in Column B. Then copy and paste all rows / columns from that unique vendor into the body of an emial and send that to the corresponding vendor email. Then I need to loop through and do the same for all of the other unique vendor numbers in the list.
So first part is filter through each unique vendor and copy and paste that into the body of an email to be sent to the corresponding email address in column U. I don't need the emails to send just to be created.
Header for email is Vendor Name in column Q + "Past Due Orders".
Body should contain the data from that unique vendor copy and pasted as well as the text "Hello xxxxx (whatever the name is in the corresponding column T",
"Please see below past due order(s) and provide and updated ship week when you can. Thank you"
This takes me forever to do manually. I was hoping someone here could help me automate with a VBA script!!
Please see below example. I am not great with VBA so I could use some help please! I need to filter by unique vendor number in Column B. Then copy and paste all rows / columns from that unique vendor into the body of an emial and send that to the corresponding vendor email. Then I need to loop through and do the same for all of the other unique vendor numbers in the list.
So first part is filter through each unique vendor and copy and paste that into the body of an email to be sent to the corresponding email address in column U. I don't need the emails to send just to be created.
Header for email is Vendor Name in column Q + "Past Due Orders".
Body should contain the data from that unique vendor copy and pasted as well as the text "Hello xxxxx (whatever the name is in the corresponding column T",
"Please see below past due order(s) and provide and updated ship week when you can. Thank you"
ENTERED_BY | VENDOR_NO | SKU | UPC | EA | QUANTITY | FOB_COST | DESTINATION_WAREHOUSE | REQUESTED_SHIP_WEEK | CURRENT_SHIP_COMMIT_WEEK | PONUMBER | PO_OPEN_QTY | SHIPPED_QTY | RECEIVED_QTY | Balance | COMMENTS | VENDOR_NAME | Ext Balance Cost | Custom | VENDOR_CONTACT_INFO.CONTACT_NAME | VENDOR_CONTACT_INFO.CONTACT_EMAIL_ADDRESS | SKU_INFO.BUYER_CODE | RB Email | Updated Ship Week |
John | 123 | 1 | 240 | EA | 4800 | $ 5.00 | OR | 21.22 | 37.22 | 6474 | 4440 | 0 | 360 | 4440 | Company | $ 22,200.00 | B | Keith | keith@abc.com | DE | de@abc.com | ||
Sarah | 1234 | 2 | 207 | EA | 2400 | $ 3.00 | KY | 15.22 | 30.22 | 8084 | 950 | 0 | 1450 | 950 | Active | $ 2,850.00 | B | Patty | Patty@123.com | DH | dh@fakemail.com | ||
George | 12345 | 3 | 251 | EA | 912 | $ 8.00 | TX | 07.22 | 34.22 | 9997 | 192 | 0 | 720 | 192 | LTD | $ 1,536.00 | B | Tony | tony@fakemail.com | LH | lh@go.com | ||
Samantha | 123456 | 4 | 270 | EA | 8088 | $ 10.00 | OR | 16.22 | 12.22 | 5131 | 320 | 0 | 7768 | 320 | Wheels | $ 3,200.00 | B | Christine | christine@go.com | SW | sw@help.com | ||
Betsy | 1234567 | 5 | 253 | EA | 2688 | $ 2.00 | DIL | 30.22 | 31.22 | 8065 | 768 | 0 | 1920 | 768 | Wheels | $ 1,536.00 | B | Rory | rory@email.com | LH | lh@go.com | ||
Betsy | 1234567 | 6 | 236 | EA | 2880 | $ 3.00 | OR | 27.22 | 28.22 | 6142 | 960 | 0 | 1920 | 960 | Wheels | $ 2,880.00 | B | Rory | rory@email.com | R6 | r6@abc.com | ||
Betsy | 1234567 | 7 | 274 | EA | 4000 | $ 3.00 | KY | 29.22 | 35.22 | 8757 | 2800 | 0 | 1200 | 2800 | Wheels | $ 8,400.00 | B | Rory | rory@email.com | LH | lh@go.com | ||
Betsy | 1234567 | 8 | 209 | EA | 1440 | $ 8.00 | KY | 30.22 | 36.22 | 8864 | 480 | 0 | 960 | 480 | Wheels | $ 3,840.00 | B | Rory | rory@email.com | R6 | r6@abc.com | ||
Betsy | 1234567 | 9 | 256 | EA | 3840 | $ 9.00 | OR | 28.22 | 28.22 | 8841 | 768 | 0 | 3072 | 768 | Wheels | $ 6,912.00 | B | Rory | rory@email.com | LH | lh@go.com | ||
Betsy | 1234567 | 10 | 216 | EA | 1920 | $ 2.00 | OR | 28.22 | 28.22 | 6490 | 960 | 0 | 960 | 960 | Wheels | $ 1,920.00 | B | Rory | rory@email.com | R6 | r6@abc.com | ||
John | 456 | 11 | 291 | EA | 3420 | $ 8.00 | OR | 08.22 | 29.22 | 6701 | 684 | 0 | 2736 | 684 | Integrated | $ 5,472.00 | B | Debbie | dagon@cthulu.com | DE | de@abc.com | ||
Sarah | 562 | 12 | 293 | EA | 540 | $ 4.00 | OR | 20.21 | 8604 | 1 | 0 | 539 | 1 | Metal | $ 4.00 | B | Tony | metal@abc.com | TQ | tq@fakemail.com | |||
Tim | 562 | 13 | 257 | EA | 2848 | $ 7.00 | OR | 02.22 | 14.22 | 9360 | 300 | 0 | 2548 | 300 | Metal | $ 2,100.00 | B | Tony | metal@abc.com | TQ | tq@fakemail.com | ||
Scotty | 711 | 14 | 219 | EA | 4200 | $ 9.00 | KY | 24.21 | 7817 | 62 | 0 | 4138 | 62 | Crown | $ 558.00 | B | Linda | linda@fakemail.com | R6 | r6@abc.com | |||
Scotty | 711 | 15 | 245 | EA | 200 | $ 9.00 | KY | 13.22 | 7765 | 126 | 0 | 74 | 126 | Crown | $ 1,134.00 | B | Linda | linda@fakemail.com | R6 | r6@abc.com | |||
Scotty | 711 | 16 | 294 | EA | 6000 | $ 3.00 | KY | 13.22 | 7306 | 4479 | 0 | 1521 | 4479 | Crown | $ 13,437.00 | B | Linda | linda@fakemail.com | R6 | r6@abc.com | |||
Scotty | 711 | 17 | 226 | EA | 100 | $ 4.00 | OR | 46.21 | 9080 | 4 | 0 | 96 | 4 | Crown | $ 16.00 | B | Linda | linda@fakemail.com | R6 | r6@abc.com | |||
Scotty | 711 | 18 | 299 | EA | 100 | $ 10.00 | KY | 03.22 | 9687 | 90 | 0 | 10 | 90 | Crown | $ 900.00 | B | Linda | linda@fakemail.com | R6 | r6@abc.com |