Need a VBA to send the PDF copy from Folder through Outlook

Vijethbangera

New Member
Joined
Feb 17, 2016
Messages
1
Hi All,

I need help with VBA code to send the PDF copies from the folder through outlook using the Excel Distribution list that when I run, would look for the path, grab the file that starts with the client name/Invoice number in Col A, and attach to the email, along with a predefined message/header.

The distribution list has the following:



A
B
C
D
E
1
Client Name/Invoice number
Email
First Name
Last Name
Path
2
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
3
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
4
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
5
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
6
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
7
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
8
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc
9
DEL100100XXX
vijethbangera@gmail.com
vijeth
bangera
C:\Users\vijetha.bangera\Desktop\ccc

<tbody>
</tbody>



I would want the email heading to be “Client Name/Invoice number” (Column A) and to say something like Dear Team,
Find the attached invoice copy for processing.
Regards

More editable text.
Insert Outlook signature.

I have been looking around not found the way I want to generate and email pdfs from Excel .
However our invoicing system generates bulk pdfs which we have to save in specified folder like in a path above. So it should be flexible for me to put the path whichever I want and this should not be pre-fixed .So the Sheet one will be kind of data feeder .it is From A to E .We should be sending it one by one to the specified emails IDs . So I am hoping to automate the last step of this. Any help/tips would be greatly appreciated!.

As i have very little knowledge with macro i would like a completed file or a code to paste in module is desirable.
Regards,
Vijeth
 

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.

Forum statistics

Threads
1,215,408
Messages
6,124,727
Members
449,185
Latest member
ekrause77

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