Hi all,
I'm looking for a simple VBA code. Everyday I receive an email with an attachment, which I want to save in a specific folder on the hard drive. I've set up a rule to place the email in a specific outlook folder. This way the only thing to happen is to save the attachments of every new received email in a specific folder, like C:\test.
I've found the following page Save E-mail attachments to folder, with the following code:
But this doesn't seem to work, as 'SaveEmailAttachmentsToFolder isn't defined.
I'm looking for a simple VBA code. Everyday I receive an email with an attachment, which I want to save in a specific folder on the hard drive. I've set up a rule to place the email in a specific outlook folder. This way the only thing to happen is to save the attachments of every new received email in a specific folder, like C:\test.
I've found the following page Save E-mail attachments to folder, with the following code:
Code:
[COLOR=#3366CC]Sub Test()[/COLOR][COLOR=black]'Arg 1 = Folder name of folder inside your Inbox
'Arg 2 = File extension, "" is every file
'Arg 3 = Save folder, "C:\Users\Ron\test" or ""
' If you use "" it will create a date/time stamped folder for you in your "Documents" folder
' Note: If you use this "C:\Users\Ron\test" the folder must exist.[/COLOR]
SaveEmailAttachmentsToFolder "MyFolder", "xls", ""
[COLOR=#3366CC]End Sub[/COLOR]
But this doesn't seem to work, as 'SaveEmailAttachmentsToFolder isn't defined.