M
Massimo
Hi,
I find at this link:
http://www.microsoft.com/italy/tech...nter/resources/officetips/aug05/tips0809.mspx
a script to save all the outlook attachment in a folder, the script is:
--------------------------------------------------
Const olFolderInbox = 6
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox)
Set colItems = objFolder.Items
For Each objMessage in colItems
intCount = objMessage.Attachments.Count
If intCount > 0 Then
For i = 1 To intCount
objMessage.Attachments.Item(i).SaveAsFile "C:\Temp\" & _
objMessage.Attachments.Item(i).FileName
Next
End If
Next
--------------------------------------------------
My problem is that I would like to save only the attachment of a specified
sender and not all,
anyone help me to modify the script ?
Thank you very much !
I find at this link:
http://www.microsoft.com/italy/tech...nter/resources/officetips/aug05/tips0809.mspx
a script to save all the outlook attachment in a folder, the script is:
--------------------------------------------------
Const olFolderInbox = 6
Set objOutlook = CreateObject("Outlook.Application")
Set objNamespace = objOutlook.GetNamespace("MAPI")
Set objFolder = objNamespace.GetDefaultFolder(olFolderInbox)
Set colItems = objFolder.Items
For Each objMessage in colItems
intCount = objMessage.Attachments.Count
If intCount > 0 Then
For i = 1 To intCount
objMessage.Attachments.Item(i).SaveAsFile "C:\Temp\" & _
objMessage.Attachments.Item(i).FileName
Next
End If
Next
--------------------------------------------------
My problem is that I would like to save only the attachment of a specified
sender and not all,
anyone help me to modify the script ?
Thank you very much !