Charalambos
New Member
- Outlook version
- Outlook 2016 32 bit
- Email Account
- Office 365 Exchange
Hello all and best wishes for a happy new year!
While searching for a solution to "problem" that we have, I came across your VB codes here.
We are interested in the first solution from the above topic:
Setup:
We are using Office 365 email accounts along with the desktop version of Outlook 2016 32bit (16.0.4591.1000) on Windows 10 machines.
We want to apply a solution similar to the link above to users who have three email accounts setup to their Outlook. One main email address e.g. user@companya.com and two shared email accounts e.g. user@companyb.com and user@companyc.com
What we want is, the sent emails from @companyb.com and @companyc.com to be saved in the "Sent Items" folder of @companya.com.
Can the VB code below modified to suit our needs?
While searching for a solution to "problem" that we have, I came across your VB codes here.
We are interested in the first solution from the above topic:
If you always want to use a different folder, you can use a macro to set the Save message to folder.
Setup:
We are using Office 365 email accounts along with the desktop version of Outlook 2016 32bit (16.0.4591.1000) on Windows 10 machines.
We want to apply a solution similar to the link above to users who have three email accounts setup to their Outlook. One main email address e.g. user@companya.com and two shared email accounts e.g. user@companyb.com and user@companyc.com
What we want is, the sent emails from @companyb.com and @companyc.com to be saved in the "Sent Items" folder of @companya.com.
Can the VB code below modified to suit our needs?
Code:
Private Sub Application_ItemSend(ByVal Item As Object)
Dim objNS As NameSpace
Dim objFolder As MAPIFolder
Set objNS = Application.GetNamespace("MAPI")
Set objFolder = objNS.GetDefaultFolder(olFolderSentMail).Folders("Diane")
Set Item.SaveSentMessageFolder = objFolder
Set objFolder = Nothing
Set objNS = Nothing
End Sub