ashleyuk1984
12-17-2015, 09:17 AM
Hi,
I have a daily task to complete which isn't very hard or time consuming, but it could be streamlined to make it extremely easy and quick.
I get multiple emails sent to me throughout the evening and night, and I see them when I turn the computer back on the next morning.
These emails have an attachment. There is just one PDF file on each email.
I have to forward these attachments onto our customer... However, they only want one email sent.
So as a 'manual' process it's not too bad, it's just takes maybe about a minute or so to go through the emails and drag all of the attachments from the nightly mails to the newly created email ready for sending.
I would like to streamline this by using VBA.
This is what I would like to ideally happen...
I would highlight each of the new emails, and press a button on my ribbon (I know how to create buttons and assign them to macros).
Once I push the button, the macro would create a new email window for me and run through my selection of emails and take each of the PDF files from my selection and attach them to my new email window.
I'm not clued up on Outlook based VBA. :(
I imagine I'll require something along the lines of:
Dim atch As Outlook.Attachment
For Each atch In Application.ActiveExplorer.Selection
But as far as taking attachments from several different emails, and placing them onto one email - I have no idea?
Any help with this would be greatly appreciated.
Thanks
I have a daily task to complete which isn't very hard or time consuming, but it could be streamlined to make it extremely easy and quick.
I get multiple emails sent to me throughout the evening and night, and I see them when I turn the computer back on the next morning.
These emails have an attachment. There is just one PDF file on each email.
I have to forward these attachments onto our customer... However, they only want one email sent.
So as a 'manual' process it's not too bad, it's just takes maybe about a minute or so to go through the emails and drag all of the attachments from the nightly mails to the newly created email ready for sending.
I would like to streamline this by using VBA.
This is what I would like to ideally happen...
I would highlight each of the new emails, and press a button on my ribbon (I know how to create buttons and assign them to macros).
Once I push the button, the macro would create a new email window for me and run through my selection of emails and take each of the PDF files from my selection and attach them to my new email window.
I'm not clued up on Outlook based VBA. :(
I imagine I'll require something along the lines of:
Dim atch As Outlook.Attachment
For Each atch In Application.ActiveExplorer.Selection
But as far as taking attachments from several different emails, and placing them onto one email - I have no idea?
Any help with this would be greatly appreciated.
Thanks