M
MarcoPolo
**************************************************
with application.Session.GetdefaultFolder(olFolderDrafts).Items
**************************************************
this is not working
Am Mon, 09 Jan 2006 18:43:16 GMT schrieb Paula:
Example for getting the first item from the drafts:
dim oMail as Outlook.MailItem
dim obj as object
with application.Session.GetdefaultFolder(olFolderDrafts).Items
if .count Then
Set obj=.Item(1)
If TypeOf obj is Outlook.MailItem Then
' Get a copy of the draft
Set oMail = obj.Copy
endif
endif
End with
with application.Session.GetdefaultFolder(olFolderDrafts).Items
**************************************************
this is not working
Am Mon, 09 Jan 2006 18:43:16 GMT schrieb Paula:
Example for getting the first item from the drafts:
dim oMail as Outlook.MailItem
dim obj as object
with application.Session.GetdefaultFolder(olFolderDrafts).Items
if .count Then
Set obj=.Item(1)
If TypeOf obj is Outlook.MailItem Then
' Get a copy of the draft
Set oMail = obj.Copy
endif
endif
End with