CreateRange

Method of IApplication

Creates Range Object from Position objects

Return Value

JavaScript

var ppRange = Application.CreateRange(pStartPosition, pEndPosition);

Visual Basic Script

ppRange = Application.CreateRange pStartPosition, pEndPosition

C++

CComPtr<IRange> pRange;
HRESULT hr = Application.CreateRange(pStartPosition, pEndPosition, &pRange);