Hello Antonio(AHF),
I use a kind of for/next for backup purpose of my emails .
Be aware that the subject of more emails could be the same.
OE does not have a object modul. You can only hack the format.
For my VB6 solution I used:
' DragDropAttachment Class
' Class to get dropped Outlook attachments
' Author: Eduardo Morcillo
' E-Mail:
edanmo@geocities.com
' Web Page:
http://www.domaindlx.com/e_morcillo
' Distribution: You can freely use this code in your own applications but you
' can't publish this code in a web site, online service, or any
' other media, without my express permission.
' Usage: at your own risk.
' Tested on: Windows XP Pro SP1
' History:
' 06/12/2003 * Added SaveAttachment method
' 12/30/2002 * Code was released
Regards,
Otto
- Code: Select all Expand view
For i = 1 TO oNameSpace:GetDefaultFolder(6):Folders:Count
For ioMail = 1 to oNameSpace:GetDefaultFolder(6):Folders[ i ]:Items:Count
myItem := oNameSpace:GetDefaultFolder(6):Folders[ i ]:Items[ ioMail ]
myItem:SaveAs ( "c:\backup\" + ALLTRIM(str(ioMail)) + ".msg" )
Next
Next