A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Outlook script permission error



 
 
Thread Tools Display Modes
  #1  
Old September 2nd, 2007, 07:50 AM posted to microsoft.public.office.misc
Jay Williams
external usenet poster
 
Posts: 1
Default Outlook script permission error

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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:52 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.