Home > Blockchain >  VBA Outlook Autocorrect object
VBA Outlook Autocorrect object

Time:01-11

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.

CodePudding user response:

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

CodePudding user response:

The Outlook object model doesn't provide anything for that. Note, Outlook uses Word as an email editor, so you can take at Word capabilities instead. For example:

Application.ActiveInspector.WordEditor.AutoCorrect.Entries.Add Name:="thier", Value:="their"

You may find the Recheck Document For Spellings Not Same as VBA Code thread helpful.

  • Related