Using VBA to create email based on information in Excel

ENAPo

New Member
Joined
May 16, 2013
Messages
23
Hi, I have columns of information that I would like to have a macro open up the email based on criteria and insert all the fields and then leave it open so that I can attach a pdf to the email.

<colgroup><col><col><col><col span="4"></colgroup><tbody></tbody>

DistrictShortServiceEmail 1Email 2Email 33January
Beach Beach@me.com
OceansnailOcean@me.com
SaltsnailSalt@me.com
Dolphin Dolphin@me.com
Monkey Monkey@me.com
SharkssnailSharks@me.com
Jellyfish Jellyfish@me.com

<colgroup><col><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>

the number 3 = is counting how many rows contain the criteria "Snail"
January is the month I would like included in the subject
This is what I would like in the email:

To: Email 1
CC: Email 2; Email 3 - If there is any
Subject: January (H1) Invoice for "District Short"
Messsage: Attached is your Snail Invoice. If you have any questions please contact the lifeguard

Thank you,

I have tried researching several different VBA examples but I couldn't narrow it down to what I needed. I am still learning.

Thanks in advance!!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
In case somebody thought this was a joke. The information given are examples. I can't paste the real information. :)
 
Upvote 0

Forum statistics

Threads
1,215,500
Messages
6,125,168
Members
449,211
Latest member
ykrcory

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