SET
The SET command is used to change the current context sheet, sheet column widths and sheet settings of the specified sheet.
To change the context sheet, use the OBJECT keyword with a value of *CONTEXT.
Required
SET ----------------------------------------------------------->
>-- OBJECT ----------- *CONTEXT----------------------->
>-- SHEET ------------ value -------------------------|
Keywords
OBJECT |
*CONTEXT |
SHEET |
A specific sheet name that must exist in the document. |
To change the sheet columnwidths, use the OBJECT keyword with a value of *COLUMNWIDTH.
Required
SET ----------------------------------------------------------->
>-- OBJECT ----------- *COLUMNWIDTH------------------->
Optional
>-- SHEET ------------ value ------------------------->
>-- WIDTH ------------ value ------------------------->
>-- RANGE ------------ n,n ---------------------------|
Keywords
OBJECT |
*COLUMNWIDTH |
SHEET |
A specific sheet name can be entered otherwise the current context sheet is used. |
WIDTH |
Width of column. The default value is 2560 units. |
RANGE |
Range of columns. A single column number or two comma separated column numbers to specify a range of columns. |
To change the sheet settings, use the OBJECT keyword with a value of *SHEET.
Required
SET ----------------------------------------------------------->
>-- OBJECT ----------- *SHEET ------------------------>
Optional
>-- SHEET ------------ value ------------------------->
>-- SELECTED --------- *YES -------------------------->
*NO
>-- DISPLAYGRID ------ *YES -------------------------->
*NO
>-- PRINTGRID -------- *YES -------------------------->
*NO
>-- PRINTAREA -------- value ------------------------->
>-- PRINTTOFIT ------- *YES -------------------------->
*NO
>-- PROTECT ---------- *YES -------------------------->
*NO
>-- PASSWORD --------- value ------------------------->
>-- FREEZE ----------- value ------------------------->
>-- MARGIN ----------- value ------------------------->
>-- HEADER ----------- *LEFT ------------------------->
*RIGHT
*CENTER
>-- FOOTER ----------- *LEFT ------------------------->
*RIGHT
*CENTER
>-- CONTENT ---------- value -------------------------|
Keywords
OBJECT |
*SHEET |
SHEET |
A specific sheet name can be entered otherwise the current context sheet is used. |
SELECTED |
Set this sheet to be the selected sheet. |
DISPLAYGRID |
Show grid. |
PRINTGRID |
Print grid. |
PRINTAREA |
Set print area. |
PRINTOFIT |
Enable or disable print to fit. |
PROTECT |
Enable or disable sheet protection. |
PASSWORD |
The worksheet protection password is optional and is used in combination with the PROTECT keyword. |
FREEZE |
Create a split freeze pane. |
MARGIN |
Set sheet margins. |
HEADER |
Specify which header content to change. The possible values are *LEFT,*RIGHT or *CENTER. |
FOOTER |
Specify which footer content to change. The possible values are *LEFT, *RIGHT or *CENTER. |
CONTENT |
The header or footer content text. |