Command Reference — Tools category — Split a File command

# Split a File command

## Summary

Splits the current document or an existing file and saves as several files.

## Description

Opens the Split a File Wizard, which allows you to split the current document to several files at either every certain number of lines or before every bookmarked line. It also allows you to specify a header and/or footer for each separated file.

## How to Run

- Default Menu: Tools > Split a File

- All Commands: Tools

> Split/Combine > Split a File

- Toolbar: None

- Status Bar: None

- Default Shortcut Key: None

## Plug-in Command ID

    EEID_SPLIT_TO_FILES (4606)

## Macros

### [JavaScript]

    editor.ExecuteCommandByID(4606);

### [VBScript]

    editor.ExecuteCommandByID 4606