Jump to content

VB Error when auto saving attachment in Outlook 2010


Recommended Posts

Posted

Hi all

 

I have been using this really useful script to save attachments to a specified location when moving an email from one folder to another in Outlook 2007.

 

Just trying to get it to work in Outlook 2010 and I get the following error:

 

Run-time error '-2147024891 (80070005)': Cannot save the attachment. You don't have appropriate permission to perform this operation.

 

When I click Debug it highlights line 32:

 

olAtt.SaveAsFile FILE_PATH & olAtt.FileName

 

If I open the email and choose save as on the atachment it allows me to save it to the location specified in the script. So it isn't that I don't have permission to the folder. Perhaps I don't have permission to run the script??

 

Anyone got any ideas please?

 

Thanks

Posted
Just to update you, it works on my colleagues computer so the coding is ok. Trying to see if there are any policies applying to my machine preventing this from running.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...