K
kf9150
hello, what i'm trying to do is moving the MailItem just sent to
appropriate folder if needed. but before that, i need to check from
which folder the mail was sent. using following code, the returned
parent folder name is always "inbox" no matter which folder the mail
was sent from. any suggestion? thanks for help. - kelie
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim objMail As MailItem
If TypeOf Item Is MailItem Then
Set objMail = Item
Debug.Print objMail.Parent.Name
End If
End Sub
appropriate folder if needed. but before that, i need to check from
which folder the mail was sent. using following code, the returned
parent folder name is always "inbox" no matter which folder the mail
was sent from. any suggestion? thanks for help. - kelie
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As
Boolean)
Dim objMail As MailItem
If TypeOf Item Is MailItem Then
Set objMail = Item
Debug.Print objMail.Parent.Name
End If
End Sub