Macro Reference — Selection Object — OverwriteMode Property (Selection Object)

# OverwriteMode Property (Selection Object)

Sets or retrieves a flag indicating the overwrite or insert mode.

##

### [JavaScript]

    bOverwrite = document.selection.OverwriteMode;
    document.selection.OverwriteMode = bOverwrite;

### [VBScript]

    bOverwrite = document.selection.OverwriteMode
    document.selection.OverwriteMode = bOverwrite

## Version

Supported on EmEditor Professional Version 4.00 or later.