FAQ Database Discussion Community

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

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 do you delete favorite folders in outlook using VBA

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)...

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

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...