I am developing Word web Add-in using OfficeJS, Now I have an accordian, If the user click on accordian menu, I need to make a selection over the header text in Word document, wherever it exists (at least one occurrence).
Is there any way to search the texts and make selection over that in Word doc using OfficeJS.Context ?
Office.context.document.setSelectedDataAsync(WordToSelect, function (asyncResult) { });
I got the above code, that is inserting the specified text and select instead of searching and do