Mike/slighthaze
The following is the VBA code from the article from the link mentioned by slighthaze.
At first glance it seem to be a question of accessing the attachments collection and saving those individual files to disk?
*!* Listing 1: The RunFile Subroutine
Sub RunFile(strFileName)
[tab]Set WshShell = CreateObject("WScript.Shell"

[tab]On Error Resume Next
[tab]WshShell.Run strFileName
[tab]If Err <> 0 Then
[tab][tab]strMsg = "Could not open this file: " & strFileName & _
vbCrLf & vbCrLf & "You can use Windows Explorer's " & _
"Tools | Options | File Types to check what " & _
"program is associated with this type of file."
MsgBox strMsg, vbExclamation, "Error opening file"
[tab]End If
[tab]Set WshShell = Nothing
End Sub
*!* Listing 2: The OpenAllFiles Subroutine
Sub OpenAllFiles()
[tab]Dim objOL As Application
[tab]Dim objItem As Object
[tab]Dim colAtts As Attachments
[tab]Dim objAtt As Attachment
[tab]Dim fso As New Scripting.FileSystemObject
[tab]Dim strFile As String
[tab]Set objOL = CreateObject("Outlook.Application"

[tab]Set objItem = objOL.ActiveExplorer.Selection(1)
[tab]If Not objItem Is Nothing Then
[tab][tab]Set colAtts = objItem.Attachments
[tab][tab]If colAtts.Count > 0 Then
[tab][tab][tab]For Each objAtt In colAtts
[tab][tab][tab][tab]strFile = "C:\Temp\" & objAtt.FileName
[tab][tab][tab][tab]objAtt.SaveAsFile strFile
[tab][tab][tab][tab]Call RunFile(strFile)
[tab][tab][tab]Next
[tab][tab]End If
[tab]End If
[tab]Set fso = Nothing
[tab]Set objAtt = Nothing
[tab]Set colAtts = Nothing
[tab]Set objItem = Nothing
[tab]Set objOL = Nothing
End Sub
FAQ184-2483 - the answer to getting answered.
Chris
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)