Search code examples
vbaemailoutlookms-wordspell-checking

VBA Outlook Autocorrect object


Is there an Outlook autocorrect object? I’m looking to speed up the process to add autocorrect items into outlooks autocorrect library.

I thought something like: AutoCorrect.Entries.Add Name:=BadWord, Value:= GoodWord might work but it. Others also suggested adding the work to a MSWord autocorrect object.


Solution

  • You can try to use AutoCorrect object in the Word Object Model.

    In Outlook, Inspector.WordEditor.Application will return the Word.Application object, so you can use Application.ActiveInspector.WordEditor.AutoCorrect.Entries.Add