Hello:
I have an excel file that I need to send different parts of to different recipients. I'm using two sub procedures that filter an excel worksheet by the email address in column X, copies the related rows and pastes them into a temporary excel workbook, attaches the temporary workbook to an email along with the body of the email which is written in HTML, sends the communication, and then repeats all of these steps through a loop until it reaches the last email in the column/range. The issue I am experiencing is the loop only works through the fourth email, then it stops. There are over 100 emails in the range, so it should continue the loop through all of these, but it does not.
I have an excel file that I need to send different parts of to different recipients. I'm using two sub procedures that filter an excel worksheet by the email address in column X, copies the related rows and pastes them into a temporary excel workbook, attaches the temporary workbook to an email along with the body of the email which is written in HTML, sends the communication, and then repeats all of these steps through a loop until it reaches the last email in the column/range. The issue I am experiencing is the loop only works through the fourth email, then it stops. There are over 100 emails in the range, so it should continue the loop through all of these, but it does not.