## Macro Command Reference

`export <filename> <mode> <BUFFER>`

Export ASCII data to file.
`<filename>`: Export data to this file.
`<mode>`: Export mode (0=all columns, 1=X,Y,ErrorY, 2=X,Y,ErrorX, 3=X, 4=Y).
`<BUFFER>`: Exported data buffer (Only one data buffer can be exported).

`BUFFER`

a list of one or more data buffers. Possible values are:

`all` | all buffers in the document
`selected` | selected buffers in the document
`unselected` | unselected buffers in the document
`visible` | visible buffers in the document
`hidden` | hidden buffers in the document
`none` | no buffer
`b1,b2,b3,...,bn` | a list of buffers where the arguments may be math expressions.
`bs..be` | buffers from bs to be