none
Changing the language in the Outlook 2010 edit window RRS feed

  • Question

  • I have this dead simple VBA macro in Word and it works beautifully:

    Sub SwitchToEnglish()
        ActiveDocument.Content.LanguageID = wdEnglishSouthAfrica
        ActiveDocument.Content.NoProofing = False
    End Sub

    The idea is obviously that I can substitute whatever language I feel and execute the macro to set the language and enable proofing.

    I always thought that Word was the default email editor in Outlook, but when I execute the same code from an Outlook edit window, ActiveDocument is empty and the code falls over.

    How should I change the language in an Outlook edit (or email compose) window?

    Wednesday, October 24, 2012 3:13 PM

Answers

  • Try this:

    Sub SwitchToEnglish()
        With ActiveInspector.WordEditor.Content
            .LanguageID = msoLanguageIDEnglishSouthAfrica
            .NoProofing = False
        End With
    End Sub


    Regards, Hans Vogelaar

    • Marked as answer by DieStrandloper Wednesday, October 24, 2012 7:15 PM
    Wednesday, October 24, 2012 3:34 PM

All replies

  • Try this:

    Sub SwitchToEnglish()
        With ActiveInspector.WordEditor.Content
            .LanguageID = msoLanguageIDEnglishSouthAfrica
            .NoProofing = False
        End With
    End Sub


    Regards, Hans Vogelaar

    • Marked as answer by DieStrandloper Wednesday, October 24, 2012 7:15 PM
    Wednesday, October 24, 2012 3:34 PM
  • You're a rockstar, thanks.
    Wednesday, October 24, 2012 7:15 PM