Class Find (Word VBA)

The class Find represents the criteria for a find operation.

The classes Range and Selection. give access to class Find


Dim fnd as Find
Set fnd = Selection.Find

Methods

ClearAllFuzzyOptions - Clears all nonspecific search options associated with Japanese text.

ClearFormatting - Removes text and paragraph formatting from the text specified in a find or replace operation.

ClearHitHighlight - Removes the highlighting for all text located in a hit highlighting find operation, and returns a Boolean that represents whether the operation was successful.

Execute - Runs the specified find operation. Returns True if the find operation is successful.

Execute2007 - Runs the specified find operation. Returns True if the find operation is successful.

HitHighlight - Highlights all found matches and returns a Boolean that represents whether matches were found.

SetAllFuzzyOptions - Activates all nonspecific search options associated with Japanese text.

Properties

CorrectHangulEndings true if Microsoft Word automatically corrects Hangul endings when replacing Hangul text.

Font returns or sets a Font object that represents the character formatting of the specified object.

Format true if formatting is included in the find operation.

Forward true if the find operation searches forward through the document.

Found true if the search produces a match.

Frame returns a Frame object that represents the frame formatting for the specified style or find-and-replace operation.

HanjaPhoneticHangul returns or sets a Boolean that represents whether to locate phonetic Hangul and hanja characters in a Korean language find operation.

Highlight true if highlight formatting is included in the find criteria.

IgnorePunct returns or sets a Boolean that represents whether a find operation should ignore punctuation in found text.

IgnoreSpace returns or sets a Boolean that represents whether a find operation should ignore extra white space in found text.

LanguageID returns or sets the language for the specified Find object.

LanguageIDFarEast returns or sets an East Asian language for the specified object.

LanguageIDOther returns or sets the language for the specified object.

MatchAlefHamza true if find operations match text with matching alef hamzas in an Arabic language document.

MatchAllWordForms true if all forms of the text to find are found by the find operation (for instance, if the text to find is "sit," "sat" and "sitting" are found as well).

MatchByte true if Microsoft Word distinguishes between full-width and half-width letters or characters during a search.

MatchCase true if the find operation is case-sensitive. The default is False.

MatchControl true if find operations match text with matching bidirectional control characters in a right-to-left language document.

MatchDiacritics true if find operations match text with matching diacritics in a right-to-left language document.

MatchFuzzy true if Microsoft Word uses the nonspecific search options for Japanese text during a search.

MatchKashida true if find operations match text with matching kashidas in an Arabic language document.

MatchPhrase true ignores all white space and control characters between words.

MatchPrefix true to match words beginning with the search string.

MatchSoundsLike true if words that sound similar to the text to find are returned by the find operation.

MatchSuffix true to match words ending with the search string.

MatchWholeWord true if the find operation locates only entire words and not text that's part of a larger word.

MatchWildcards true if the text to find contains wildcards.

NoProofing true if Microsoft Word finds or replaces text that the spelling and grammar checker ignores.

ParagraphFormat returns or sets a ParagraphFormat object that represents the paragraph settings for the specified find operation.

Replacement returns a Replacement object that contains the criteria for a replace operation.

Style returns or sets the style for the specified style. Read/write Variant.

Text returns or sets the text to find.

Wrap returns or sets what happens if the search begins at a point other than the beginning of the document and the end of the document is reached (or vice versa if Forward is set to False) or if the search text isn't found in the specified selection or range.

Font - Contains font attributes (such as font name, font size and color) for an object.

Frame - Represents a frame. The Frame object is a member of the Frames collection. The Frames collection includes all frames in a selection, range, or document.

ParagraphFormat - Represents all the formatting for a paragraph.

Replacement - Represents the replace criteria for a find-and-replace operation. The properties and methods of the Replacement object correspond to the options in the Find and Replace dialog box.

Style - Represents a single built-in or user-defined style. The Style object includes style attributes (such as font, font style, and paragraph spacing) as properties of the Style object. The Style object is a member of the Styles collection. The Styles collection includes all the styles in the specified document.