Range.InsertAutoText Method 

Attempts to match the text in the specified range or the text surrounding the range with an existing AutoText entry name.

Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)

Usage

Dim range1 As Range
range1.InsertAutoText()

Syntax

Sub InsertAutoText()
void InsertAutoText();
public: Void InsertAutoText();
public void InsertAutoText();
function InsertAutoText();

Remarks

If any such match is found, InsertAutoText inserts the AutoText entry to replace that text. If a match cannot be found, an error occurs.

You can use the Insert method with an AutoTextEntry object to insert a specific AutoText entry.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Range Interface
Microsoft.Office.Interop.Word Namespace

Other Resources

Range Members