Posts

Showing posts from January, 2011

Outlook (2007) Ribbon: Issue adding new group to Message tab

When writing a COM Addin for Microsoft Outlook 2007 , I came across a scenario where I needed to add buttons to the Ribbon when composing or reading an email message.  Using the IRibbonExtensibility methods, I was able to add a new tab with groups and controls to the read and compose inspectors.  The issue was that I needed to include an additional group in the Message tab of an email when composing or viewing.  If I set the tab id to that of the read or compose message class (TabNewMailMessage or TabReadMessage), the group would not display at all. The new group would only display if added to a new tab.  When I set the tab id to that of the Message tab for the read and compose message classes, the new group would not display at all.  This was not ideal, as the solution required that the new group and buttons were displayed first before the standard groups within the Message Tab.   There were a number of reasons that the custom group woul...

Outlook VBA Macro Cause Close Loop

When developing a macro for Outlook 2007 Visual Basic Editor, part of the macro code caused outlook to close unexpectedly (“Unexpected Error has occurred”) while attempting to load. This meant that I was not able to easily access the macro to fix the issue. The article Outlook Close Loop - VB Macro Development suggested to adjust the macro security check option via the registry to allow Outlook to open again. This worked, which allow Outlook to open without the error. When prompted to enable or disable macros while loading, I opted to disabled macros. This allowed Outlook to full load, and gave me access to the VB Editor to fix the issue.