Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2017 by Barry MacDonnell. All Rights Reserved.

Page updated Apr 4, 2017

Create a custom table with a macro

Download CUSTOMTBL.ZIP (v1.01; 04/02/14; 7,334 bytes)

Compatible with WordPerfect 9 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support

Purpose and instructions

Create a custom table.wcm - This macro creates a custom table at the cursor position with your preferred default settings for the number of columns and rows, as well as the table's horizontal position, cell margins, cell widths, and cell format (numbers, currency, etc.)

Click the Download link in the left column and save the archive file (CustomTbl.zip) to any convenient folder on your computer. Then extract the Create a custom table.wcm macro and place it in your Default of Supplemental macro folder. (For additional help with this see the Downloading... link in the left column on this page.)

Then play the macro in a new document to see how it works. Enter some text in the cells, use the Tab key to move to the next cell (and in the last cell to add a new row), etc. You can also view it as it will print with File, Print Preview.

By default the macro creates a new 3-row, 3-column table centered on the page, using the Chicago Manual of Style format (i.e., no left or right table borders; a single-line for the top and bottom table border; no cell borders except a border at the bottom of the first row of cells).

You can easily modify it to suit your needs.

Modification and user preferences

Open the macro like any WordPerfect document to set your preferences in the redlined User Modification Area at the top of the macro's code.

Then click Save & Compile from the macro toolbar (or just File, Save on the main menu).


 
Tips

☼  This macro might best be added to the top menu, adjacent to the regular Create table command. See here for more on this. (You might name the menu selection "Create custom table".)

Alternatively you could assign it to a toolbar button or a keyboard shortcut, as explained here.

☼  See also several table tips on this page: "Using WordPerfect tables".