Re: Move sent emails
- From: Brian Tetlow <Brian.Tetlow.1zgt5y@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 3 Dec 2005 13:51:57 +0100
All sorted, thanks.
Dim IMAPSentFolder As MAPIFolder
Private WithEvents olSentItems As Items
Private Sub Application_Startup()
Dim MySent As Object
Set objNS = Application.GetNamespace("MAPI")
Set MySent = objNS.GetDefaultFolder(olFolderSentMail)
Set IMAPSentFolder = objNS.Folders("Brian's Mail").Folders("Sent")
Set olSentItems = MySent.Items
End Sub
Private Sub olSentItems_ItemAdd(ByVal Item As Object)
Item.Move IMAPSentFolder
End Sub
Private Sub Application_Quit()
Set objNS = Nothing
Set MySent = Nothing
Set olSentItems = Nothing
Set IMAPSentFolder = Nothing
End Sub
--
Brian Tetlow
------------------------------------------------------------------------
Brian Tetlow's Profile: http://www.highdots.com/forums/m1516
View this thread: http://www.highdots.com/forums/t3125810
.
- References:
- Move sent emails
- From: Brian Tetlow
- Move sent emails
- Prev by Date: Re: Size of Attachment before save
- Next by Date: Re: Copy sent emails to IMAP folder
- Previous by thread: Move sent emails
- Next by thread: Re: Download E-Mail List
- Index(es):