Select either of the two bottom settings (i.e. Notifications for all macros or Enable all macros (not recommended; potentially dangerous code can run). The choice of which to choose is up to you. If you select Notifications, then you’ll be prompted at times to enable macros. If you pick Enable all then there’s a chance that a malicious macro could run. It’s a question of how much risk you want to assume.

Click Ok until the dialog-boxes have all closed

Close Outlook

Start Outlook. Outlook will display a dialog-box warning that ThisOutlookSession contains macros and asking if you want to allow them to run. Say yes.

A reader named Savio requested a solution enabling him to “reply all” to multiple messages at once. Here is that solution.

Sub ReplyAllToAllSelected()
Dim olkMsg As Object, olkRpl As Outlook.MailItem
For Each olkMsg In Application.ActiveExplorer.Selection
If olkMsg.Class = olMail Then
Set olkRpl = olkMsg.ReplyAll
olkRpl.Display
End If
Next
Set olkMsg = Nothing
Set olkRpl = Nothing
End Sub

Requirements.

This solution should work in all versions of Outlook from 2003 on.

Instructions.

Follow these instructions to add the code to Outlook.

Start Outlook

Press ALT + F11 to open the Visual Basic Editor

If not already expanded, expand Microsoft Office Outlook Objects

If not already expanded, expand Modules

Select an existing module (e.g. Module1) by double-clicking on it or create a new module by right-clicking Modules and selecting Insert → Module.

Copy the code from the code snippet box and paste it into the right-hand pane of Outlook’s VB Editor window

Click the diskette icon on the toolbar to save the changes

Close the VB Editor

Using the Solution.

Select one or more messages then run the ReplyAllToAllSelected macro. The macro will create a reply to each selected message and display it on screen. You can then add your reply and send the message.

Adding Buttons to Run the Macro with a Single Click.

If Savio wants to run the macro with a single click, then he’ll need to add a toolbar button in Outlook 2007 or a button on the Quick Access Toolbar (QAT) for Outlook 2010. Here’s how.

Outlook 2007. Follow these instructions to add a toolbar button that runs the macro.

Outlook 2010 – 2016. Follow these instructions to add the macro to the QAT.

Today, while checking questions on Experts-Exchange, I stumbled across one where the author is looking for a way to forward messages during certain times of the day. S/he had found a potential solution on another blog, but was unable to get it to work. I had a look at that solution, and while it’s both clever and functional, I think there’s a simpler way to go about this and that’s to use a macro.Continue reading →