Basically what I want is that, I have start and end index now I want to get the Range object from this start and end index.
OR how do I get the start and end index from the existing range object.
Word.run(function (context) {
var range = context.document.getSelection();
range.select();
return context.sync().then(function () {
console.log('Selected the range.');
});
})
.catch(function (error) {
});
Please help me how I can solve this.
Thanks in advance.