VBA to add attachments to email based on list

RyanJ1991

New Member
Joined
Jul 2, 2018
Messages
4
Hi, I've been looking into writing VBA code to send an email with multiple attachments which are found in the sheet Pending Tom Review and begins in cell R7 and can be up to 20 attachments (R27).

The .To should be found in "A1"
.cc "A2"
.subject "A3"
.Body "A4"

Please help :)!!!!

Thank you
 

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.
Hi RyanJ1991,

Welcome to the MrExcel Board.

I have to ask... Have you tried researching this at all. This question has been covered at length on this board, and there is a ton of information on the internet as well. The link that follows is a search of MrExcel.com...

https://www.mrexcel.com/forum/search.php?searchid=7821194
 
Upvote 0
Hi Fluff,

Yes, I pasted it to an email and sent it to myself and it worked fine.

Is it not working as posted on the forum...

I just tried it again and it works...
 
Last edited:
Upvote 0
Interesting.

After your reply I went into Post #2 and tried it and it worked.

Perhaps it is some sort of message board dysfunction that it works for me because I authored it.

Either way I hope that the OP understands the point I am trying to make.
 
Upvote 0
I get the same message. I have researched it everywhere and I can't seem to find out how to attach the files. I get the adding messaeg subject etc the attachments field seems to be giving em a hard time.
 
Upvote 0
@Fluff

When I click the link I get this message

Maybe you could test this out. Do a search, copy the results link, post it, and see if you can open it and if anyone else can open it.

It would be nice to know what is happening for future reference...
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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