Bookmark.InsertAutoText Method (2007 System)
Attempts to match the text in the Bookmark control with an existing AutoText entry name.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
Public Sub InsertAutoText
'Usage
Dim instance As Bookmark
instance.InsertAutoText()
public void InsertAutoText()
public:
void InsertAutoText()
public 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 exception is thrown.
Calling this method might delete the Bookmark control.
You can use the Insert(Range, Object) method with an AutoTextEntry object to insert a specific AutoText entry.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.