Skip to content

setxls

setxls is a tool to modify Excel files.

Is able to fill cells with values and images and to set the cell style.

It can address a cell by his coordinates ex. A3 B9 or use symbolic name of the cell.

Syntax

setxls ver. 1.2 by Opera Company

Usage: setxls [options...] [directives] [@textFile]
-o, --output <output file>   specify the output file
-s, --sheetname <sheet name> specify the name of the sheet inside the Excel(R) file
-U, --utf8                   import from UTF8
Examples: Set values on the XLS file cells:
            setxls [-ooutputfile] xlsfile [@cell_list_file] [cell=value|[sheet.]name]=value ...

          Query values from the XLS file cells:
            setxls [-ooutputfile] xlsfile [cell|[sheet.]name] ...

          Row commands:
            %current_row%=### set current row ...
            %current_row%++ increment current row ...
            [LETTER]%current_row% refers a cell in the current row
            (Ex. F%current_row%)

          Format commands:
            cell:=format string
            format string commands:
              text_color(rrr,ggg,bbb)
              text_color(ccc)
              background(rrr,ggg,bbb)
              background(ccc)
              bold, italic, left, right, center, justify
              text_size(size)
              text (force text format on the cell)
              merge_to(c) (merges cells horizontally up to c)

          setxls file.xls C71=5 A1=0 A7=OK A1:=bold,RGB(255,0,0)
          setxls -oresult.xls source.xls "name=John Smith" A4=5.7
          setxls file.xls totals.price=145432.81
          setxls file.xls @cell_list.txt