Excel Loops to send individual mails based on a column value

Sohan Ram

New Member
Joined
Nov 23, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I am working on a VBA automation project for my company and hoping you can help me on the VBA looping part. I am still learning VBA loops and not very good at them yet.

I need a VBA loop that goes through an Excel table and copies-pastes a portion of the table/range from that table based on the column “oppty lead” e.g. for "Abhishek Singh" as oppty lead, only the table/range pertaining to his records gets inserted into the mailer sent to him for his comments.

In a similar manner, the marco then also loops through names of all other oppty leads in the xls and creates individual mails to them with their respective tables/ranges also copied-pasted into those mails.

Thanks in advance for your guidance on how this could be done.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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