MS Outlook Plain Text Alignment Error

Something that has driven me wild over the past few weeks is that my instance of MS Outlook insists on aligning all plain text emails to the right. I have searcged in vain for a solution so the best I have been able to come up with for now is the VBA code below that converts all incoming mail to HTML format. Please feel free to use this code if you have the same problem. Simply paste the code into the "ThisOutlookSession" module in your VBA editor

Public WithEvents myOlItems As Outlook.Items

Private Sub Application_Quit()
  Set myOlItems = Nothing
End Sub

Private Sub Application_Startup()
  Set myOlItems = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
End Sub

' Converts incoming messages from plain text to HTML because they
' seem to right align as plain text.

Private Sub myOlItems_ItemAdd(ByVal Item As Object)
  Dim mi As Outlook.MailItem

  If Item.Class = olMail Then
    Set mi = Item
    If mi.BodyFormat = olFormatPlain Then
      mi.BodyFormat = olFormatHTML
      mi.Save
    End If
  End If
End Sub

Introduction to ambientPineapple

Intelligent Software
ambientPineapple specialize in providing intelligent software solutions that will support your business as it develops and grows. We treat every development as a partnership and take pride in our meticulous analysis, design, and build services to ensure maximum return on your investment in highly extensible yet low maintenance software solutions.
Every situation is different and yet we are confident that we can meet the unique needs of your business through a combination of the services that ambientPineapple can provide:-

  • Project Management
  • Technical Architecture
  • Bespoke Software Development
  • Web Applications and E-Commerce Systems Development
  • Web Applications Hosting
  • Systems Integration and Enhancement
  • Business intelligence and Enterprise Reporting

Experience Counts
We have a highly skilled team of analysts, designers, architects and artists who have worked in a broad range of market sectors such as aerospace, engineering, military logistics, publishing, entertainments, market research retail and music.
Contact Us
Please see the Contacts page if you would like to find out more about ambientPineapple or how we can help realize your software development ambitions. Alternatively you can read more about the ways in which ambientPineapple can help and the Services that we provide.