Win,
By the looks of it VB code you have posted uses outlook to query emails for attachments and save the attachments do disk. If this question is because you dont understand VB is there a reason why you have to do this via
Win32::OLE and not using other modules? The reason I ask is that a
Super Search of the topic returns
Exchange Server and IMAP, the reply posts would be a good place to start looking. This even came up yesterday with
Save Email Attachment to File which may suit you down to the ground.
As I suggested in reply to your
previous question,
Super Search is your friend :)
Martin