Hi Excel User: Note: Not Outlook Express or Windows Mail
Hi Excel User: Note: Not Outlook Express or Windows Mail
The examples in this workbook display the mail so you can use the
addressbook to use the address you want or enter more text in the body of the mail.
Change .Display to .Send in the code if you know the address and want to send the mail directly.
Note: on the webpage for each example there is more information ( there is a link on each worksheet)
Read also the tip page for the Outlook examples
http://www.rondebruin.nl/mail/tips2.htm
Ron de Bruin
ection/range in
This example Send the whole sheet in the body of the mail
I use .Display in the code so you can look at the result
You find the macro in Module1 and the function in the module FunctionModule
Note: There is more information on the webpage
Note: if you want to send also a picture in the body of the mail see this page
This example Send a small plain text message in the body of the mail.
I use .Display in the code so you can look at the result.
You find the macro in Module3
This example send the text from a txt file in the body of the mail
I use .Display in the code so you can look at the result.
You find the macro in Module3 and the function in the module FunctionModule
Be sure that the txt file in the download is in the same folder then this example workbook
Name Address Yes/No
Tom tom@test.nl no
Dave dave@test.nl yes
Cordialmente,
This procedure will mail every Worksheet with an address in cell A1.
It does this by cycling through each worksheet in the workbook and checking cell A1 for the @ character.
If found it will create a mail and send it to the address in cell A1.
You see that in this workbook only this sheet have a address in A1.
I use .Display in the mail so you can look at the result
You find the macro in Module4
Name Address Yes/No Jan Feb Mar Apr May
Ron ron@test.nl yes 8 6 4.8 9
Tom tom@test.nl no 8 6 4.8 9
Dave dave@test.nl yes 7 5.6 9 7.5
This example each row to the student with the grades in the body of the mail
because the value in column C = "yes"
I use .Display in the code so you can look at the result.
This example will loop through row 1 -100
You find the macro in Module6 and the function in the module FunctionModule
Jun Jul Aug Sep Oct Nov Dec
e result.
We filter the range A17:C? for every unique name in the name column (column A in this example)
For every unique name we create a new file with only the data of that person and send it to the
mail address it find with the VLookup function in the worksheet "Mailinfo".
Student information
Info about Ron 1
Info about Dave 1
Info about Tom 1
Info about Ron 2
Info about Dave 2
Info about Tom 2
Info about Ron 3
Info about Dave 3
Info about Tom 3
Info about Ron 4
Info about Dave 4
Info about Tom 4
Info about Ron 5
Info about Dave 5
Info about Tom 5
Info about Ron 6
Info about Dave 6
Info about Tom 6
Other Info
Other Info about Ron 1
Other Info about Dave 1
Other Info about Tom 1
Other Info about Ron 2
Other Info about Dave 2
Other Info about Tom 2
Other Info about Ron 3
Other Info about Dave 3
Other Info about Tom 3
Other Info about Ron 4
Other Info about Dave 4
Other Info about Tom 4
Other Info about Ron 5
Other Info about Dave 5
Other Info about Tom 5
Other Info about Ron 6
Other Info about Dave 6
Other Info about Tom 6
Name Mail address
Ron ron@test.nl
Dave dave@test.nl
Tom tom@test.nl