Excel VBA Macro to send emails & attachments

Jordan2

New Member
Joined
Apr 4, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
Hi,
I need some help in putting together a macro which matches the excel files in a folder to the name in the main folder and send only those ones out.

For example I have 10 excel files in my folder, let's say on the desktop:
Each folder is named 'Person 1' through to 'Person 10' and in the file it's got everyone's contact information.
How would I create this and produce only 10 emails with their 10 individual attachments?

Thanks.
 
You've got no PC at home, no USB stick to transfer my little file? I'm using skype for my individual file transfer ...
Not currently no, I am sure it would just be a few tweaks to my current code I found might get it to work?
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Good to hear you got the solution.
If you would like to post the solution then it is perfectly fine to mark your post as the solution to help future readers. Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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