Microsoft Word Suite
This example inserts new cells to the left of the selected cells, and then it surrounds the selected cells
with a red, single-line border.
if (count of cells of selection) 1 then
insert cells selection shift cells insert cells shift right
set outside line style of border options of selection to line style single
set outside color index of border options of selection to red
Command: insert columns
Inserts columns to the left of the column that contains the selection. If the selection isn't in a table, an
insert columns selection Required. An expression that returns a selection object.
[position enumeration] Optional. The location to insert the columns relative to the selection.
Can be either of the following: insert on the right or insert on the left.
This example inserts new columns to the left of the column that contains the selection. The number
of columns inserted is equal to the number of columns selected.
if (get selection information selection information type with in table) ¬
insert columns selection
set texture of shading of selection to texture10 percent
Command: insert cross reference
Inserts a cross-reference to a heading, bookmark, footnote, or endnote, or to an item for which a
caption label is defined (for example, an equation, figure, or table).
insert cross reference
at text range Required. An expression that returns a text range object.
reference type enumeration Required. The type of item for which a crossreference is to be
inserted. Can be one of the following: reference type bookmark, reference type endnote,
reference type footnote, reference type heading, or reference type numbered item.