
Originally Posted by
gmayor
A script that will run from a rule is associated with a message object
Sub MacroName(Item As Outlook.MailItem)
. That message 'item' is the message that triggers the rule, so it shouldn't matter where the message is, the script should be able to process it.
Hi Graham,
That is very useful to know. So are you saying that I should be able to run the script against the email as it sits in the inbox before it gets moved to the "MyFolder" subfolder? If that is the case would I just change the "MyFolder" reference as below to "Inbox"?
Public Sub RunMacro(Item As Outlook.MailItem)
RunMacroX
End Sub
Sub RunMacroX()
'Change this
SaveEmailAttachmentsToFolderNew "MyFolder", "", "C:\Processed File"
'Change to this
SaveEmailAttachmentsToFolderNew "Inbox", "", "C:\Processed File"
End Sub
Thanks,
Des