vba - Rule to save attachments on incoming emails not working on a fresh install of Outlook -
we're migrating 1 server , vba script save attachments working has given ghost on new server.
this fresh install of outlook.
script below:
public sub saveattachmentall(itm outlook.mailitem) dim objatt outlook.attachment dim savefolder string savefolder = "d:\www\phones" each objatt in itm.attachments objatt.saveasfile savefolder & "\" & objatt.displayname set objatt = nothing next end sub i've tested outlook rule , outlook performing other actions on script isn't working!
so turns out had disable macro security (which isn't best) , restart outlook. simple, scratching head while...!
Comments
Post a Comment