FAQ Database Discussion Community


How do you delete favorite folders in outlook using VBA

vba,outlook-2007
I wish to delete all the folders from the outlook favorites then subsequently replace them, but the delete doesn't seem to work. What's wrong with my code. Setup Objects works fine ' Get the "Favorite Folders" navigation group Set favGroup = Application.ActiveExplorer.NavigationPane.Modules.GetNavigationModule(olModuleMail).NavigationGroups.GetDefaultNavigationGroup(olFavoriteFoldersGroup) This works Set inboxFldr = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox) favGroup.NavigationFolders.Add (inboxFldr)...

Send email to all contacts in Outlook address book when a new email received (VB)

vba,outlook,outlook-2007
I want to write a VBA script that when Outlook receive a new email from a specific email address , the VBA script has to detect that and resend the new received email to all contacts in the address book . For now i was able to send an email...

How to open and display incoming mails in outlook using VB? (Not VBA)

vb.net,visual-studio-2013,outlook-2007
I've been struggling recently with a simple Windows Form Application that helps me automate common outlook tasks. I know that triggering a "Display" event everytime a new email arrives is quite simple, but I'm still a noob when it comes to Visual Basic. I must mention that all the information...