Vijay
Member
- Outlook version
- Outlook 2010 64 bit
- Email Account
Hi All,
the below code worked only once and its not all working now.
this code saves attachment to folder on arrival. and i have set this through run a script rule.
my trust center setting > macro settings > Notifications for digitally signed macros,all other macros disabled.
and its greyed out and i can't change this to enable all macros.
am not sure whether it is macro setting problem or anything else. Please Please help.
Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.attachment
Dim saveFolder As String
saveFolder = "\\Vanj3\FY_17\Robo Incoming files"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub
the below code worked only once and its not all working now.
this code saves attachment to folder on arrival. and i have set this through run a script rule.
my trust center setting > macro settings > Notifications for digitally signed macros,all other macros disabled.
and its greyed out and i can't change this to enable all macros.
am not sure whether it is macro setting problem or anything else. Please Please help.
Public Sub saveAttachtoDisk(itm As Outlook.MailItem)
Dim objAtt As Outlook.attachment
Dim saveFolder As String
saveFolder = "\\Vanj3\FY_17\Robo Incoming files"
For Each objAtt In itm.Attachments
objAtt.SaveAsFile saveFolder & "\" & objAtt.DisplayName
Set objAtt = Nothing
Next
End Sub