AutoCorrectEntry (object)

<< Click to Display Table of Contents >>

AutoCorrectEntry (object)

Access path: Application à AutoCorrect à Entries à Item

 1  Description

An AutoCorrectEntry object represents one individual SmartText entry, for example, "sd" for "sales department".

An individual AutoCorrectEntry object exists for each SmartText entry. If you create SmartText entries or delete them, the respective AutoCorrectEntry objects will be created or deleted dynamically.

 2  Access to the object

The individual AutoCorrectEntry objects can be accessed solely through enumerating the elements of the collection Application.AutoCorrect.Entries. The type of this collection is AutoCorrectEntries.

Example:

' Show the name of the first SmartText entry

MsgBox tm.Application.AutoCorrect.Entries.Item(1).Name

 3  Properties, objects, collections and methods

Properties:

Name (default property)

Value

 

Objects:

Application Application

Parent AutoCorrectEntries

 

Methods:

Delete

Name (property)

Data type: String

Gets or sets the name of the SmartText entry (e.g. "sd").

Value (property)

Data type: String

Gets or sets the contents of the SmartText entry (e.g. "sales department").

Application (pointer to object)

Data type: Object

Returns the Application object.

Parent (pointer to object)

Data type: Object

Returns the parent object, i.e. AutoCorrectEntries.

Delete (method)

Deletes an AutoCorrectEntry object from the AutoCorrectEntries collection.

Syntax:

 Delete

Parameters:

none

Return type:

none

Examples:

' Delete the first SmartText entry

tm.Application.AutoCorrect.Entries.Item(1).Delete

 

' Delete the SmartText entry with the name "sd"

tm.Application.AutoCorrect.Entries.Item("sd").Delete