Hi everyone,
I am using Outlook 2010 version.
When I add the VBA code below to the incoming email rule, I get a warning that this rule shall be a client-only rule and importantly the script does not work. It was tested by another user on his Outlook 2010: he does not get this message and the script works for him just the way it should.
What could be the reason? Any security settings in Outlook or Windows? I seems to have checked everything...
I am using Outlook 2010 version.
When I add the VBA code below to the incoming email rule, I get a warning that this rule shall be a client-only rule and importantly the script does not work. It was tested by another user on his Outlook 2010: he does not get this message and the script works for him just the way it should.
What could be the reason? Any security settings in Outlook or Windows? I seems to have checked everything...
VBA Code:
Public Sub SaveAutoAttach(item As Outlook.MailItem)
Dim object_attachment As Outlook.Attachment
Dim saveFolder As String
'Folder location
saveFolder = "\\path to folder\FileSaveFolder\"
For Each object_attachment In item.Attachments
object_attachment.SaveAsFile saveFolder
Next
End Sub