Command Reference — Search category — In the Selection Only (Find toolbar) command

# In the Selection Only (Find toolbar) command

## Summary

Toggles the In the Selection Only button on the Find toolbar.

## Description

Toggles the In the Selection Only button on the Find toolbar. When this command is toggled, using the Find function will only search within the selected area.

## How to Run

- Default Menu: None

- All Commands: Search > Find Toolbar > In the Selection Only

- Toolbar: (Find toolbar)

- Status Bar: None

- Default Shortcut Key: None

## Plug-in Command ID

    EEID_FINDBAR_SEL_ONLY (4580)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4580);

### [VBScript]

    editor.ExecuteCommandByID 4580