Saturday, May 13, 2006

Insert Left Column

Under.zip (XTable) "InsertLeftColumn" - Places an extra column, with no visible grid lines, to the left of each table in the current document.
I use this as a simple means of indenting a table from the left hand side of the page.

Friday, May 12, 2006

Convert To Delimited Form All Tables

Under.zip (XTable) "ConvertToDelimitedFormAllTables" - Standard convert-to-text, but can be applied to a set of tables simultaneously.
Word allows you to convert a single table to delimited form. I allow you to convert a complete set of selected tables, all at once.

A short note about selection: I have tried to be consistent in interpreting your selection. If you are messing about with tables and the selection point is zero-length outside a table (for example, you click in a paragraph), I assume that you want to apply the operation to all tables in the document. If you have clicked in a table, I assume you want the operation to apply only to the selected table. If you have selected a range within the document, I assume you want the operation to apply only to those tables in the selection.

Thursday, May 11, 2006

Page Breaks DisAllow Fractional Tables

Under.zip (XTable) "PageBreaksDisAllowFractionalTables" - Do not permit any table to break across a page.
To the best of my knowledge you will not find this in any Word menu system, certainly not in Word2000, but it is available to the VBA programmer. In yesterday's blog entry I produced a macro that inhibits page breaks within a row. Today we inhibit page breaks within a table.

Wednesday, May 10, 2006

Page Breaks DisAllow Rows All Tables All Rows

Under.zip (XTable) "PageBreaksDisAllowRowsAllTablesAllRows" - Do not permit any row of any table to be broken across a page boundary. This corresponds to what you see (Word 2000) when you choose Table, Table Properties, Row, to wit, a check box with "Allow row to break Across pages".
Our command "PageBreaksDisAllowRowsAllTablesAllRows" turns OFF that check box for all rows in every table in the current document.
Tomorrow you are in for a treat!

Tuesday, May 09, 2006

Auto Fit Content Only Fractional Tables

Under.zip (XTable) "AutoFitContentOnlyFractionalTables" Only tables that are partially in the selected region of the document will be automatically aligned to best-fit their column width to the contents. See also "AutoFitContentAllTables".
Continuing from the example given in "Auto Fit Content Only Entire Tables", only the first and last tables in any selection would be eligible for Auto Fit techniques with this particular macro.

Monday, May 08, 2006

Auto Fit Content Only Entire Tables

Under.zip (XTable) "AutoFitContentOnlyEntireTables" Only tables that are entirely in the selected region of the document will be automatically aligned to best-fit their column width to the contents. See also "AutoFitContentAllTables".
Consider a document with a series of tables separated by descriptive text. You can select any part of that document. In particular you can make a selection such that the starting point of your selection is part-way through a table, and the end-point of your selection is partway through a table, and so those two tables, at the start and at the end of your selection, are only partly within the selection. Tables that lie in between these two tables must be "Entire"ly within the selection, and only those tables will be considered.
If your selection point is of length zero, for example, if you have clicked your mouse between two characters which lie outside any table, then the entire document will be considered to have been selected, just as if you had used Ctrl-A to select the entire document.

Sunday, May 07, 2006

Auto Fit Content All Tables

Over this week I'll be documenting the new sets of table-related groups of macros. If you explore the lower part of the Table menu you will find a bewildering range of macros; I have scratched the surface as an experiment, and suspended development.
Today's macro is easy enough to comprehend. It applies best-fit (Word menu: Table, AutoFit, AutofitToContents) to all tables in the current document.
Word will allow you to autofit a single table, but try selecting two tables, or all tables (Ctrl-A) and see what happens.
I wanted a mechanism whereby I could create a series of tables, and then apply best fit to the lot.

Under.zip (XTable) "AutoFitContentAllTables" All tables in the document will be automatically aligned to best-fit their column width to the contents.