Bem, descobri que OMathAutoCorrect.Entries
será indexado pelo texto inserido, para que você possa procurar itens rapidamente. Eu escrevi a macro a seguir e atribuí a ito a um atalho de teclado. Aqui está, no caso de ajudar alguém!
Public Sub ConvertMathAutoCorrectEntryStartingWithBackslash()
' Convert an autocorrect entry beginning with a backslash, and don't move the cursor.
Dim st As Long, en As Long
Dim needle As String
Dim fontname As String
' Find the text to replace
st = Selection.Start
en = Selection.End
If st = en Then
'Nothing selected. Assume we're at the end of a just-typed abbreviation.
Selection.MoveStartUntil "\", wdBackward 'leaves the cursor just before the \
Selection.MoveStart wdCharacter, -1 'grab the \, too
End If
needle = Selection.Text
fontname = Selection.Characters(1).Font.Name
' Find the replacement
Dim entry As OMathAutoCorrectEntry
Set entry = Nothing
On Error Resume Next
Set entry = Application.OMathAutoCorrect.entries.Item(needle)
On Error GoTo 0
If Not (entry Is Nothing) Then
' A match - make the replacement
Selection.Delete
Selection.InsertAfter entry.Value
Selection.Collapse wdCollapseEnd
Selection.Font.Name = fontname ' So the font doesn't carry over from the math
Exit Sub
End If
' We didn't find it - put the cursor back
Selection.Start = st
Selection.End = en
End Sub 'ConvertMathAutoCorrectEntryStartingWithBackslash