Following site. Created this code into a modul:
Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.Attachment
For Each objAtt In itm.Attachments
objAtt.SaveAsFile "C:\Data\" & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
But nothing happens when I set up a rule which calls the script everytime a mail comes in.