I have a small script located below that I use to download attachments from emails that contain specific words in the subject.
It worked good for a while but recently I have been experiencing intermittent issues with it not downloading the attachments.
I'm starting to think the rule is the issue and not the script.
Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
Dim saveFolder As String
saveFolder = "path where to save file"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\inventory.csv"
Set objAtt = Nothing
Next
End Sub
This is the rule:
Apply this rule after the message arrives
with CPN in the subject
and on this computer only
run Project1.saveAtachtoDisk
You guys are my last hope as nobody else can help me.