Im trying to create a folder in outlook but the same level as inbox, is possible? somebody can give me some directions
here is the code implaying
Dim myNameSpace As Microsoft.Office.Interop.Outlook.NameSpace
Dim myFolder As Microsoft.Office.Interop.Outlook.Folder
Dim myNewFolder As Microsoft.Office.Interop.Outlook.Folder
Dim objApp As Microsoft.Office.Interop.Outlook.Application 'Outlook Application
objApp = New Microsoft.Office.Interop.Outlook.Application 'Create Outlook Instance
myNameSpace = objApp.GetNamespace("MAPI") 'Get Appropriate Outlook Namespace
myFolder = myNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox)
myNewFolder = myFolder.Folders.Add("My folder")
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.