CreateAutoTextEntry Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Selection.CreateAutoTextEntry Method

Adds a new AutoTextEntry object to the AutoTextEntries collection, based on the current selection.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

AutoTextEntry CreateAutoTextEntry(
	string Name,
	string StyleName


Type: System.String
Required String. The text the user must type to call the new AutoText entry.
Type: System.String
Required String. The category in which the new AutoText entry will be listed on the AutoText menu.
© 2016 Microsoft