Run script doesn't work in outlook


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
End Sub

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
It sounds like there is a policy in place to force that macro setting. You'll need to digitally sign the macro - and if you need to edit it, you'll need to remove the signature then resign it after editing.
How to use Outlook's VBA Editor

Similar threads