# WorkbookSearch.find Method

> WorkbookSearch.find method in the browser JavaScript API, with the parameter options, the return type SearchMatch[] and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Browser Editor > WorkbookSearch > WorkbookSearch.find Method
- **422 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/find-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/find-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/find-method/llms-full.txt

---

Finds cells in workbook order and then row-major order, returning at most maxResults (default 1,000).

Owner: [WorkbookSearch](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```javascript
owner.find(options)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `options` | `SearchOptions` | No | Supported settings for this operation; omitted settings retain documented defaults. |

### Return Value

`SearchMatch[]`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```javascript
function applyWorkbookSearchFind(book) {
    const workbookSearch = book.search;
    const result = workbookSearch.find({ query: 'Invoice', matchCase: false });
    return result;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [WorkbookSearch Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [SearchOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchoptions/llms-full.txt)
- [SearchMatch Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/searchmatch/llms-full.txt)

---

## Nearby

- **Previous:** [WorkbookSearch Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/llms-full.txt)
- **Next:** [WorkbookSearch.replace Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbooksearch/replace-method/llms-full.txt)
