*Please Help* Macro to filter through a list with conditions

gkey18

New Member
Joined
Dec 24, 2020
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I am attempting to filter through a list of numbers in one column, when a binary condition of 0 or 1 is met in another column. The code should then send an email to all of the rows with a 1 in it. If there is a zero it show loop to the next row and so on.

Main Issue: how can i make a conditional for loop/if statement to only send emails to the rows with 1 and SKIP the rows with a 0.

Thank you!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi, Please see the images uploaded. Used loop to check the binary number and then sending email.
Column A have email ID and column B have binary number 0 and 1. The loop checks the binary number and send email accordingly.
Let me know if you find any issue.
 

Attachments

  • sendEmail.PNG
    sendEmail.PNG
    38 KB · Views: 9
  • sendEmailExcel.PNG
    sendEmailExcel.PNG
    11.7 KB · Views: 9
Upvote 0

Forum statistics

Threads
1,215,411
Messages
6,124,759
Members
449,187
Latest member
hermansoa

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