1
votes

I want to open the default Find and Replace task pane from Office Online on a button click from my Office Add-in(For MS Word).

Find and Replace task pane in office online

Is it possible to open the default Find and Replace task pane programmatically using office.js or I do have to develop my own task pane? If yes, how can I do this?

2

2 Answers

0
votes

It isn't possible to trigger the Find and Replace pane from Office.js.

Depending on which host (Word, Excel, PowerPoint, etc), you may be able to programmaticly replicate the functionality. For example, you could use the body.search() method and then iterate through the results. That said, this wouldn't be trivial and I'm not sure the value in replicating a function already baked into the app.

0
votes

its not possible to open that dialog with the API. Depending on what Office Application you are targeting you could do your own. Is this for Word? Excel? If its for Word please check out the following sample for script lab. Otherwise please clarify your question.

thanks!