Macro to email PDF documents off my desktop automatically

mamcelro

Board Regular
Joined
Oct 10, 2011
Messages
71
I've been tasked to find a better way to accomplish a task on of our admins has been doing. Currently, one of our admins is taking a stack of invoices, scanning them in as PDF, and renaming them by the persons names (these are expense reimbursement invoices). I'm not really sure how we would automate this. Here is the part I think we can automate - she is then saving each file as Doe, John 04.2012.pdf then attaching each individually to an email, and sending them all out separately. Is there a way to do this automatically? I wasn't sure how to start the VBA since it's not in excel. Would you write in outlook? The email address of each that it needs to be sent to is this format jdoe@sample.com. I think the macro can just read the name as she saves these files to accomplish this. She usually adds a body to the email, with two fields that need to be updated (ie We have deducted from your next check due "Date1". Please email me by "Date2" if you have any questions.) The two dates would be the same for all emails in a batch, so we would just need to update these once. Other information - the documents are sitting on her C drive (C:\Documents and Settings\User1\Desktop\Employees). Anyone know how I could accomplish automating this? Any insight is appreciated! Thanks!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
To be able to advise the best solution, it would be useful to know which version of Office is being used, please.
 
Upvote 0

Forum statistics

Threads
1,225,613
Messages
6,186,004
Members
453,334
Latest member
Prakash Jha

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