Macro Reference — Document Object — RearrangeColumns Method (Document Object)

# RearrangeColumns Method (Document Object)

Rearranges CSV columns.

##

### [JavaScript]

    document.RearrangeColumns( strColumns );

### [VBScript]

    document.RearrangeColumns strColumns

## Parameters

strColumns

Specifies a string indicating the order of columns to be rearranged. For instance, "1, 3, 5" indicates the result will include the first, third, and fifth columns of the original CSV document.

## Version

Supported on EmEditor Professional Version 22.1 or later.