thumper808
Technical User
Hi Guys...I think I have a pretty simple question but I'm not sure about Outlook VBA.
I just need to place a copy of an email, once sent (when the SEND button is pressed), to a folder that the user specifies. I have the following but I am very new to Outlook VBA. Could someone point me in the right direction please? I have the following code...
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objApp As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder
Dim objMailItem As Outlook.MailItem
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objFolder = objNS.PickFolder
End sub
I just need to place a copy of an email, once sent (when the SEND button is pressed), to a folder that the user specifies. I have the following but I am very new to Outlook VBA. Could someone point me in the right direction please? I have the following code...
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objApp As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objFolder As Outlook.MAPIFolder
Dim objMailItem As Outlook.MailItem
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objFolder = objNS.PickFolder
End sub