- Format body
text in a document or envelope with a table
to keep items lined up horizontally and/or vertically. For example:
- Create a custom return address with a
logo and text on your envelopes. See here
- A one-column, one-row table can put a
border around a block of text (like a text box), and if you edit the
table and choose Format, Row, "Divide row across pages," the material
will "flow" across page boundaries if you add or delete material above
- You can easily set the dimensions or
position (from the left edge) of such a table, add fills, remove
- Numbering rows in a table
- Method A: Use QuickFill
- Type a "1" in the first (top left)
cell, then a "2" in the next cell down, in column A. Select the entire
column (tip: move the mouse cursor inside the column until it turns to
an up arrow, then double-click your mouse), right-click the selected
column, and choose QuickFill from the context menu that appears. All
cells in that column will be populated with incrementing numbers.
- Method B: Use a table formula
- Postion the cursor in the first
(top) cell of the column you want numbered, then click on
- Click on Functions, then select
All, and scroll down to Row(). Clck on Row(), then Insert. The formula
will appear to the right of the blue arrow in the formula field. Click
on the blue checkmark and the function will put the row number in the
- Alternative: Just type (without
quotes) "+Row()" into the formula field, then click the blue checkmark.
- Click on Copy Formula. Select Down,
and enter the number of rows into which to copy the function. (Tip: To
copy it to all rows in the column, click and hold the small up arrow to
the right of the field; it will increment numbers until it reaches the
- Method C: Use a macro to populate all
cells in the column
- Here's a macro that can do the same
thing as QuickFill, but can be played anytime -- especially after
inserting or deleting rows, which can cause disruptions in numbering
- Note that the table formula method
will not suffer disruptions since +Row() always returns the current row
number. Note also that the macro assumes you want to start numbering in
cell A1; if not, delete the first PosTableBegin command.
any existing items in the first column, then
// adds incrementing numbers (1..n) in that column.
"The first column's contents will be deleted
and replaced with incrementing numbers.";
- A more robust version of the
QuickFill macro can be found in the Library.
- Method D: Use automatic paragraph
outline numbers in the column's cells (see here)
- Wrapping text around a table
The table should already have been created in the current document.
Then, using the following procedure you can insert the table into a
graphic box. Then you can wrap text around the boxed table.
- In the Reveal Codes window, carefully
select and copy (Ctrl+C) everything between (and including) the
[Tbl Def] and [Tbl Off] codes to the Windows clipboard.
- Open a new, empty document and paste
the table into it for temporary safe-keeping. Return to the original
document and delete the original table (including the [Tbl Def]
and [Tbl Off] codes). Reformat any document text, if needed.
- Create a graphics box on the page with
Insert, Graphics, Custom Box, Table, OK. Double-click on the empty box
to edit it (or right-click it, then choose Content, Edit). [Tip:
If you are not currently editing a box, you can also double-click on
the [Box] code in Reveal Codes at any time to bring up the Edit Box
dialog with various options.]
the table (Ctrl+V) from the clipboard into the Editor window that
appears (if it doesn't paste, you can go to the temporary document,
select the table, and copy it to the clipboard again).
- Exit back to the document's body text
area with File, Close or by clicking the Close icon on the
property bar. (Note that the box can be resized later; the table will
resize automatically inside the box, unless you have fixed the sizes of
- Select the box by right-clicking on it
and choosing Select Box from the context menu. (Eight "drag handles"
appear around the perimeter.) This will let you drag the box into a new
position on the page. Or, you can use Position from the context menu to
specify an exact location. (The box can be repositioned later, if
- While still selected, right-click the
box and Choose Position, Attach...; this lets you "anchor" the box in a
specific location. (For small tables you probably want to anchor it to
a specific paragraph so it will move with that paragraph.)
- Right-click the box again. From the
context menu you can wrap the text around the box in various ways, or
re-size the box, reposition it, add a border, add a caption, etc. You
should experiment with the various options to get the effect you
are not currently editing a box, you can also double-click on the [Box]
code in Reveal Codes at any time to bring up the Edit Box dialog with
- Exit from the box by clicking elsewhere
on the page.
- Related tips:
- If you resize columns to a specific
width, set the table to "Center" position on the "page" (right-click
the table, use Format on the context menu, then look under the Table
tab). "Full" overrides the column widths, but lets you automatically
expand/contract the table width by adjusting the graphic box's
- This is a good technique to use if
you need to rotate a table 90 degrees, since you can rotate the
contents of the box by right-clicking it and choosing Content,
Rotate.... This can be useful when mixing
landscape pages with portrait pages.
a table cell that could possibly evaluate to zero to display blank (i.e., not show a "0")
- Assuming you are calculating figures in
two columns (e.g., cell A1 times cell B1) and want the result to be
shown in the third column (e.g., cell C1) only if it is not
equal to zero. Then, in Cell C1 (here, we assume the result of A*B
should be multiplied by .50) -
- +IF((A1*B1)=0, "", (A1*B1)*.50)
- (Note the use of two double quotes with
no space between them.)
- It is a good idea to save the document
before performing any sort on it. Make sure to enable "Allow Undo" in
the Tools, Sort, Options button drop list.
- The individual items in a sort are
considered to be "records." WordPerfect lets you sort five kinds of
- lines (each ends with one hard return),
- paragraphs (each ends with multiple hard returns),
- merge records,
- parallel columns (table column or parallel column), and
rows in a table.
- Each row of a table is a record, and it is divided into its parts: Column (cell), Line (text in a cell), and Word (text in a cell). Cells are numbered from left to right,
starting with cell 1.
- To define a custom Table sort: Place
your cursor in the table, click Tools, Sort, New. Give the sort a name (e.g., "My New Sort"),
then with the Table Row radio button enabled, define the "Sort by" rule (or key),
which defines the order in which the sort will be conducted. You can
define additional rules with the Add Key button.
- Normally, lowercase sorts before
uppercase. To reverse this, click the Options button and choose
"Uppercase sorts before lowercase."
- To sort by the last word in a particular column's cells, define the column number to use and then use "-1"
(without quotes) in the Word field, "-2" for the next to last word, etc.
- WordPerfect format codes
([Tab], [Hd Left Ind], etc.) are treated as field
by the sort feature. Hence it might be a good idea to look over the
table and see if all rows used in the sort have the same "format"
(i.e., same number and location of Tabs, etc.) if you wish to use a
particular field to sort on.
- On the other hand, spaces, forward slashes (/) and
hyphens separate words.
- Dates can be used as a Key Type
(WordPerfect 10+), and each date in the table should be separated by
slashes or hyphens; all characters are considered when sorting dates in
numerical order. Hence, use the same format for all dates (e.g., 10
characters: 09/25/2013). Also: As noted, the slash or hyphen can be
used to separate words, so parts of dates (e.g., the year) can be used
as "words" to define a sort key for the dates you want to sort. See
WordPerfect's Help <F1> or the Reference Center (on the Help
menu) for more information.
regular paragraphs in reverse order
- If you are keeping a diary, journal, or
other document where you enter new lines (or paragraphs) at the end of
the document, but now want to reverse the order of the items so that
the most recent are at the top:
- Select all paragraphs in the
document. Click Table, Create and set the Columns = 1 and Text
Delimiters = Paragraphs. Click OK. You should now have a table with all
document paragraphs in separate cells.
- With the cursor in the table, click
Table, Insert, Columns = 1, Before, OK. You should now have a
two-column table with the first column being empty.
- Enter a 1 in the top cell of the
first column, and a 2 in the cell just below it. Select just the entire
first column, then click Table, QwickFill. This should sequentially
number all cells in the first column. Click in the second column (or
outside the table) to deselect the first column.
- With the cursor in the table, click
Tools, Sort to bring up the Sort dialog. Choose "First cell in a table
row," then click New. Give the new sort routine a name (e.g., "Reverse
table sort"). The "Sort by" radio buttons should be set to "Table row."
Then, under "Keys," set the Type = Numeric and Sort Order = Descending.
Click OK. With the new routine name ("Reverse table sort") selected in
the Sort dialog, click Sort. The entire table should immediately sort
into reverse order.
- Place the cursor in the first
(numbered) column. Click Table, Delete, Columns, 1, OK. You should now
have a one-column table again.
- With the cursor in the table, click
Table, Convert. Select the "Convert tables to text" button, and the
"Separate text with paragraphs (hard returns)." Click OK.
text outside the left margin with a large "[" bracket
the effect. Note that the text lines up with
the left margin, and the bracket is "outdented."
- Here's how to do it and create a QuickWord from it to make it easy to re-create
- Open a new blank document. Create a
1-row, 2-column table with Table, Create.
- Drag the middle vertical cell
border to the left as far as it will go. This leaves a minimum-width
left-hand column (you can resize this column to a specific dimension by
right-clicking in the column, then choosing Format, Column). Typically,
this is 0.67" wide. The right-hand column (the cell) will extend to the
- Right-click in the right-hand
column and choose Borders/Fill, and then click the Cell tab. Remove
("X") all 4 borders from that cell. This should leave the first cell
(i.e., the left-hand column) with a 3-sided border shaped like a left
- Right-click in the right-hand
column and set the top/bottom row margins with Format, Row (e.g., to
0.40" for each). Be sure to enable (check) "Divide row across pages"
and click on the "Multiple lines" option. Set the inside left/right column margins to 0.0"
with Format, Column; while there, align the contents in cells, if
- Exit from the table. Place the
cursor just before (i.e., just to the left of) the
[Tbl On] code. Change the left margin to 0.933" with Format,
Margins. (This assumes your default left margin is 1.0". If not, set
the margin appropriately so that the left margin dimension plus the
width of the table's left column equal your normal left margin setting.)
- Place the cursor just after
the [Tbl Off] code and change the left margin back to 1.0" (or your
preferred left margin setting).
- The table should now be outdented
beyond the left margin by the width of the first col umn.
- To automate
creating the table in future sessions -- turn it into a QuickWord:
- Before adding any text to the table do this:
- In Reveal Codes, place the
insertion cursor before (just to the left of) the [Tbl Def]
- In Reveal Codes, select
the six adjacent codes (first remove any stray hard returns between
them). These are the codes to select:
[Lft Mar][Tbl Def][Row][Cell][Tbl Off][Lft Mar]
- With the codes selected, create
a QuickWord with Tools, QuickWords. Perhaps
give it the name of "\[" (without quote marks).
- Back in your document, type
(without quotes) "\[".
- Result: A new table with the
"[" border outdented by the same amount as the first (empty) cell in
- Enter text in the second column of
the table. The bracket will extend downward as you do this -- including
onto the following page if necessary.
- Locking and
unlocking table cells (the Tab key will let you
skip over locked cells)
- To lock one or
- Place your cursor in the cell (or
select the range of cells) to be locked with your mouse, then
right-click on the cell(s) and choose Format from the context
menu that appears. This brings up the Properties for Table
Format dialog. Under the Cell tab, enable (i.e., tick) the
check box "Lock cell to prevent changes," then click Apply or OK.
- Repeat this procedure to lock all
cells that should be locked. (Remember, you can skip over locked cells
with the Tab key.)
- To unlock one
or more cells (even in a completely locked table):
- Step 1. Select the cell(s).
- For individual cells: Place your cursor over the cell to be unlocked with your
mouse, inside the top (or left) edge of the cell until the
cursor changes to an arrow, then left-click once to select the
- For multiple cells: Place your cursor over the first cell to be unlocked with
your mouse, inside the top (or left) edge of the cell until the
cursor changes to an arrow, then hold down the left mouse
button and drag the mouse to select the remaining cells.
(To unlock a completely locked table you should select all cells.)
Release the left mouse button.
- The cell(s) should now be
completely filled in black (i.e., reverse color), right up to the cell
- Step 2. Right-click on the selected
item(s) and choose Format from the context menu that appears.
This brings up the Properties for Table Format dialog.
- Step 3. Unlock the cell(s).
- To permanently unlock one or
- Under the Cell tab
in the Properties dialog, disable (i.e., un-tick) the check
box, "Lock cell to prevent changes," then click OK.
- Note that if you are
permanently unlocking a cell at a time, repeat Steps 1-3 for all cells
that should be unlocked. If you are permanently unlocking a range of
selected cells, all cells in that range will be unlocked; go to
- To temporarily unlock all
- Under the Table tab
in the Properties dialog, enable (i.e., tick) the check box,
"Disable locks in cells," then click OK.
- Note that this option is a
toggle switch that lets you unlock and re-lock previously locked cells.
You can re-lock all locked cells when you have finished editing the
table by disabling (i.e., un-ticking) the check box. It is
independent of the Cell tab option above, and therefore it does not
permanently unlock any locked cells.
- Step 4. Test the results of Steps
1-3. [Thanks to Larry Lewis for parts of this method.]
cells bold, italic, etc.
- Two methods:
- You can select the text
in a cell and apply bold, italic, etc., the same as you would do in
normal body text: When the text is selected, use the [B], [I], etc.
buttons on the property bar or use Ctrl+B, Ctrl+I, etc. In Reveal Codes
you should see the attributes codes for these text attributes. Be
sure to read the next paragraph.
- You can also select the cell
itself (tip: move the mouse cursor inside the cell next to its border
until it turns to an up arrow or left arrow, then left-click your
mouse; the cell turns completely black when selected, up to the cell
borders). Then use the same buttons or shortcuts as in the previous
paragraph to apply the attribute. However, notice that
only new [Font] codes will show up. Attribute codes are hidden
(for some unknown reason). This often causes confusion when users try
to remove such attributes with the normal buttons or shortcuts.
Instead, select the cell(s) and apply the same attribute to toggle the
- Setting tabs
inside table cells (and navigating to those tabs)
- 1. Place your cursor just above the
If you open the Reveal Codes window, you can place the cursor just to
the left of the [Tbl Def] code.
- 2. Clear all current tabs at that point
in the document (you can restore them following the table, in
- Click on Format, Line, Tab Set.
This brings up the Tab Set dialog.
- Optional but recommended: Enable the radio button, "Tab position
from left edge of paper (absolute)".
- Click Clear All, then Close.
- 3. Edit the table to set new tab
positions in cells.
- Once they are set you can navigate
to the tabs stops in any celll that has the new tab stops with Ctrl+Tab
or Ctrl+Shift+Tab. (Just pressing Tab inside a table takes you to the
- Tip: Always
start from the top of the table and proceed setting tab stops rightward
and then downward in various cells. Otherwise, the program might become
confused (e.g., if you go back up to an earlier row to reset some
tabs). In other words, setting tabs inside tables might be best left to
your final draft of the document.
- 4. Immediately following the table, set
tabs for the rest of your document text. (Here is a macro to do this for
- [Thanks to 'Robin' and 'bobhs' at
WordPerfect Universe for the basic steps.]
- Using a
borderless table to fill in a form.
- Create a
WordPerfect table that has a "Continued" label in the header row on the
second and subsequent pages of the table.
- Copy the original repeating header
row(s) on the first page of the table to the Windows clipboard.
- For the original header row, de-select
“Header Row repeats on each page”.
- Paste (from the clipboard) the original
header row to the top row of the second page of the table. Type
“Continued” where appropriate. This row will now be the header for the
second and subsequent pages (“Header Row repeats” should still be
selected in this row). [Thanks to Maggie Holman at WordPerfect Universe
for this tip.]
- Add a page
number in the header row (or any other row's cell).
- If the header row is set to repeat on
all pages (the option "Header row" in Table, Format, Row is enabled),
then place the cursor in the row and use Format, Page, Insert Page
Number. (The DOS keyboard has a shortcut: Ctrl+p.) The page number will
be visible in the header row on subsequent pages.
- Similarly, place the cursor in any cell
of the table and use Format, Page, Insert Page Number.
- Adding a
foreground or background color to table cells - Why you need to set a
- From Pascal Couture on OfficeCommunity (Jul 18, 2012):
WordPerfect, you create a table, select some of the cells and you
select a color from the 'Table Cell Foreground Fill Color' icon on the
Property Bar. Nothing happens... the cell color doesn't change.
reason why the cell color isn't affected in this case is that the
'foreground color' is only applied to cells that have a 'cell fill'
selected. I agree this is a little counter-intuitive.
Essentially, once a cell fill is selected, you can then select both a
foreground and background color to apply to that gradient/pattern fill.
can set a cell fill by using the 'Cell Fill' icon on the Property Bar
(to the left of the foreground color icon), or from the 'Properties for
Table Borders/Fill' dialog (accessible from the 'Borders/Fill' item in
the 'Table' menu)."