Range Methods
Include Protected Members
Include Inherited Members
The Range type exposes the following members.
Methods
Name | Description | |
---|---|---|
AutoFormat | Automatically formats a range. | |
Calculate | Calculates a mathematical expression within a range. | |
CheckGrammar | Begins a spelling and grammar check for the specified range. | |
CheckSpelling | Begins a spelling check for the specified range. | |
CheckSynonyms | Displays the Thesaurus dialog box, which lists alternative word choices, or synonyms, for the text in the specified range. | |
Collapse | Collapses a range to the starting or ending position. | |
ComputeStatistics | Returns a statistic based on the contents of the specified range. | |
ConvertHangulAndHanja | Converts the specified range from Hangul to Hanja or vice versa. | |
ConvertToTable | Converts text within a range or selection to a table. | |
ConvertToTableOld | Reserved for internal use. | |
Copy | Copies the specified object to the Clipboard. | |
CopyAsPicture | The CopyAsPicture method works the same way as the Copy method. | |
CreatePublisher | Reserved for internal use.This member is for Macintosh only and should not be used. | |
Cut | Removes the specified object from the document and places it on the Clipboard. | |
Delete | Deletes the specified number of characters or words. | |
DetectLanguage | Analyzes the specified text to determine the language that it is written in. | |
EndOf | Moves or extends the ending character position of a range or selection to the end of the nearest specified text unit. | |
Expand | Expands the specified range. | |
ExportAsFixedFormat | Saves a portion of a document as PDF or XPS format. | |
ExportFragment | Exports the selected range into a document for use as a document fragment. | |
GetSpellingSuggestions | Returns a SpellingSuggestions collection that represents the words suggested as spelling replacements for the first word in the specified range. | |
GoTo | Returns a Range object that represents the start position of the specified item, such as a page, bookmark, or field. | |
GoToEditableRange | Returns a Range object that represents an area of a document that can be modified by the specified user or group of users. | |
GoToNext | Returns a Range object that refers to the start position of the next item or location specified by the What argument. | |
GoToPrevious | Returns a Range object that refers to the start position of the previous item or location specified by the What argument. | |
ImportFragment | Imports a document fragment into the document at the specified range. | |
InRange | Determines if the range to which the method is applied is contained in the specified range. | |
InsertAfter | Inserts the specified text at the end of a range or selection. | |
InsertAlignmentTab | Inserts an absolute tab that is always positioned in the same spot, relative to either the margins or indents. | |
InsertAutoText | Attempts to match the text in the specified range or the text surrounding the range with an existing AutoText entry name. | |
InsertBefore | Inserts the specified text before the specified range. | |
InsertBreak | Inserts a page, column, or section break. | |
InsertCaption | Inserts a caption immediately preceding or following the specified range. | |
InsertCaptionXP | Reserved for internal use. | |
InsertCrossReference | Inserts a cross-reference to a heading, bookmark, footnote, or endnote, or to an item for which a caption label is defined (for example, an equation, figure, or table). | |
InsertCrossReference_2002 | Reserved for internal use. | |
InsertDatabase | Retrieves data from a data source (for example, a separate Microsoft Word document, a Microsoft Excel worksheet, or a Microsoft Access database) and inserts the data as a table in place of the specified range. | |
InsertDateTime | Inserts the current date or time, or both, either as text or as a TIME field. | |
InsertDateTimeOld | Reserved for internal use. | |
InsertFile | Inserts all or part of the specified file. | |
InsertParagraph | Replaces the specified range with a new paragraph. | |
InsertParagraphAfter | Inserts a paragraph mark after a range. | |
InsertParagraphBefore | Inserts a new paragraph before the specified range. | |
InsertSymbol | Inserts a symbol in place of the specified range. | |
InsertXML | Inserts the specified XML text into the specified range or selection. | |
InStory | Determines if the selection or range to which this method is applied is in the same story as the range specified by the Range argument. | |
IsEqual | Determines if the range to which this method is applied is equal to the range specified by the Range argument. | |
LookupNameProperties | Looks up a name in the global address book list and displays the Properties dialog box, which includes information about the specified name. | |
ModifyEnclosure | Adds, modifies, or removes an enclosure around the specified character or characters. | |
Move | Collapses the specified range or selection to its start or end position and then moves the collapsed object by the specified number of units. | |
MoveEnd | Moves the ending character position of a range. | |
MoveEndUntil | Moves the end position of the specified range or selection until any of the specified characters are found in the document. | |
MoveEndWhile | Moves the ending character position of a range while any of the specified characters are found in the document. | |
MoveStart | Moves the start position of the specified range. | |
MoveStartUntil | Moves the start position of the specified range or selection until one of the specified characters is found in the document. | |
MoveStartWhile | Moves the start position of the specified range while any of the specified characters are found in the document. | |
MoveUntil | Moves the specified range until one of the specified characters is found in the document. | |
MoveWhile | Moves the specified range while any of the specified characters are found in the document. | |
Next | Returns a Range object that represents the specified unit relative to the specified range. | |
NextSubdocument | Moves the range to the next subdocument. | |
Paste | Inserts the contents of the Clipboard at the specified range. | |
PasteAndFormat | Pastes the selected table cells and formats them as specified. | |
PasteAppendTable | Merges pasted cells into an existing table by inserting the pasted rows between the selected rows. | |
PasteAsNestedTable | Pastes a cell or group of cells as a nested table into the selected range. | |
PasteExcelTable | Pastes and formats a Microsoft Excel table. | |
PasteSpecial | Inserts the contents of the Clipboard. | |
PhoneticGuide | Adds phonetic guides to the specified range. | |
Previous | Returns a Range object relative to the specified selection or range. | |
PreviousSubdocument | Moves the range or selection to the previous subdocument. If there isn't another subdocument, an error occurs. | |
Relocate | In outline view, moves the paragraphs within the specified range after the next visible paragraph or before the previous visible paragraph. | |
Select | Selects the specified object. | |
SetListLevel | Sets the list level for one or more items in a numbered list. | |
SetRange | Sets the starting and ending character positions for the range. | |
Sort | Sorts the paragraphs in the specified range. | |
SortAscending | Sorts paragraphs or table rows in ascending alphanumeric order. | |
SortDescending | Sorts paragraphs or table rows in descending alphanumeric order. | |
SortOld | Reserved for internal use. | |
StartOf | Moves or extends the start position of the specified range or selection to the beginning of the nearest specified text unit. | |
SubscribeTo | Reserved for internal use.This member is for Macintosh only and should not be used. | |
TCSCConverter | Converts the specified range from Traditional Chinese to Simplified Chinese or vice versa. | |
WholeStory | Expands a range to include the entire story. |
Top