Resize worksheet column widths to display content of all cells
X-Function not designed for Auto GetN Dialog.
1. wautosize;
2. wautosize cw1:=2 cw2:=10 rh1:=2 rh2:=3 hw:=b;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Sheet to resize rows and columns | iw |
Input Worksheet |
|
Specify the worksheet to resize. |
Min Col Width(-1=default, 2 = 2 chars) | cw1 |
Input double |
|
Specify the minimum column width of the worksheet. |
Max Col Width(-1=default, 10=10 chars) | cw2 |
Input double |
|
Specify the maximal column width of the worksheet. |
Min Row Height(-1=default, 1 = 1 line) | rh1 |
Input double |
|
Specify the minimum column height of the worksheet. |
Max Row Height(-1=default, 2 = 2 lines) | rh2 |
Input double |
|
Specify the maximal column height of the worksheet. |
Resize Height Width | hw |
Input int |
|
Specify the resize range Option list:
|
Column Width Margin (% char width) | mw |
Input int |
|
Specify the width of column margin. |
Row Height Margin (% char height) | mh |
Input int |
|
Specify the height of row margin. |
Max # of Cols to resize(0=internal default) | limit |
Input int |
|
Specify the number of column to resize. |
This function is used to resize the worksheet columns width by the maximal length in each column.