Outlook script permission error

J

Jay Williams

When I try to run the following script, I get the error: "Cannot save the
attachment. You don't have appropriate permission to perform this operation."

Sub SavePhotoAttachmentViaPhotoAddress(Item As Outlook.MailItem)
Dim SaveDir As String
Dim i As Integer
SaveDir = "C:\Users\Jay\Pictures\OutlookPhotoAttachments"

For i = 1 To Item.Attachments.Count
Item.Attachments.Item(i).SaveAsFile (SaveDir)
Next i
End Sub

I'm logged in as Admin, I set Macro permissions in Outlook to allow scripts
to run, and I gave Everyone Full permissions on that photo directory.

I'm running Vista and Office 2007.

Ideas?

Thanks,
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top