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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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