Search notes:

Office Object Model: Word - Range

A Range object applies to a continuous section in a document. The range is delimited (or defined) by its starting and end (character) position.
Unlike a bookmark, a `range object only exists while the procedure that defined it is running.
Compare the Range object with the selection object.

Methods and properties

application
autoFormat()
bold
boldBi
bookmarkID
bookmarks
borders
calculate()
case
cells
characters
characterStyle
characterWidth
checkGrammar()
checkSpelling()
checkSynonyms()
collapse() Moves either the starting (wdCollapseEnd) or ending position (wdCollapseStart) to the other position so that both become the equal position. Compare with selection.collapse()]
columns
combineCharacters
comments
computeStatistics()
conflicts
contentControls
convertHangulAndHanja()
convertToTable()
copy()
copyAsPicture()
creator
cut()
delete()
detectLanguage()
disableCharacterSpaceGrid
document
duplicate
editors
emphasisMark
end
endnoteOptions
endnotes
endOf()
enhMetaFileBits
expand()
exportAsFixedFormat()
exportAsFixedFormat2()
exportFragment()
fields
find
fitTextWidth
font
footnoteOptions
footnotes
formattedText
formFields
frames
getSpellingSuggestions()
goTo()
goToEditableRange()
goToNext()
goToPrevious()
grammarChecked
grammaticalErrors
highlightColorIndex
horizontalInVertical
hTMLDivisions
hyperlinks
iD
importFragment()
information
inlineShapes
inRange()
insertAfter()
insertAlignmentTab()
insertAutoText()
insertBefore()
insertBreak()
insertCaption()
insertCrossReference()
insertDatabase()
insertDateTime()
insertFile()
insertParagraph()
insertParagraphAfter()
insertParagraphBefore()
insertSymbol()
insertXML()
inStory()
isEndOfRowMark
isEqual()
italic
italicBi
kana
languageDetected
languageID
languageIDFarEast
languageIDOther
listFormat
listParagraphs
listStyle
locks
lookupNameProperties()
modifyEnclosure()
move()
moveEnd()
moveEndUntil()
moveEndWhile()
moveStart()
moveStartUntil()
moveStartWhile()
moveUntil()
moveWhile()
next()
nextStoryRange
nextSubdocument()
noProofing
oMaths
orientation
pageSetup
paragraphFormat
paragraphs
paragraphStyle
parent
parentContentControl
paste()
pasteAndFormat()
pasteAppendTable()
pasteAsNestedTable()
pasteExcelTable()
pasteSpecial()
phoneticGuide()
previous()
previousBookmarkID
previousSubdocument()
readabilityStatistics
relocate()
revisions
rows
scripts
sections
select()
sentences
setListLevel()
setRange()
shading
shapeRange
showAll
sort()
sortAscending()
sortByHeadings()
sortDescending()
spellingChecked
spellingErrors
start
startOf()
storyLength
storyType
style
subdocuments
synonymInfo
tables
tableStyle
tCSCConverter()
text
textRetrievalMode
textVisibleOnScreen
topLevelTables
twoLinesInOne
underline
updates
wholeStory()
wordOpenXML
words
XML

End of document

At times, it is necessary to obtain a range that represents the (single point) of the end of a document.
It seems that this is possible with the following function (although I am not sure that this is really the most efficient and preferred way to do that):
function endOfDocument(doc as document) as range ' {

    set endOfDocument = doc.content
    endOfDocument.collapse wdCollapseEnd

end function ' }

See also

Word Object Model

Index