If have an Excel 2007 workbook that on one page holds holds invoice data (name, invoice items and eMail address) and the other page contains an Invoice template.
I have created a VBA macro that runs through every line of the invoice data worksheet, filling the template with the required data and then saving the invoice template sheet as a PDF using the name field as the PDF name (e.g. "Joe Bloggs.PDF"). This creates up to 300 individual PDF invoices.
Now I want to automatically email all the PDFs to the correct email address, if there is one, otherwise I want to print the PDF.
To complicate things up to 4 PDFs can go to an individual email address, although I am happy to send each one individually.
And to further complicate matters, we use Thunderbird as our email client.
Google hasn't been too helpful.
Can anyone point me in the right direction?
I have created a VBA macro that runs through every line of the invoice data worksheet, filling the template with the required data and then saving the invoice template sheet as a PDF using the name field as the PDF name (e.g. "Joe Bloggs.PDF"). This creates up to 300 individual PDF invoices.
Now I want to automatically email all the PDFs to the correct email address, if there is one, otherwise I want to print the PDF.
To complicate things up to 4 PDFs can go to an individual email address, although I am happy to send each one individually.
And to further complicate matters, we use Thunderbird as our email client.
Google hasn't been too helpful.
Can anyone point me in the right direction?