Hello everyone,
I know, title is weird, but this is what happens.
I have a piece of code, that send emails from excel with an attachment.
At the moment, I have to place the data in Excel this way, so each Column is a single email.
A1 is To:
A2 is Subject:
A3 is Body:
A4 is File:
And I want to place data like this, so each line is a single email.
A1 is To B1 is Subject C1 is Body D1 is File
Can you guys please help me ?
Here's the Code:
Here is an example in Excel that would explain properly what I need.Please Login or Register to view this content.
Example.xlsx
Tried many things already, but can't get it to work.
I feel it's in front of me on the Offset values, but I don't understand it and can't get it to work like I want to.
Also, if I am not mistaken, that code sends a maximum of 3 emails ( Set rngEntries = ActiveSheet.Range("B1:D1" ). Is there a way to send all emails without a range ? For example, stop if a cell in the " To: " Column is empty ?
Many thanks guys !
Bookmarks