Microsoft KB Archive/146006

= Incorrect Row Height in Converted WordPerfect Table =

Article ID: 146006

Article Last Modified on 11/1/2006

-

APPLIES TO


 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 95 Standard Edition

-



This article was previously published under Q146006



SYMPTOMS
When you insert a new row in a table that has been converted from WordPerfect 6.x, the new row may appear to be smaller than the other rows.



CAUSE
In the converted WordPerfect table, an extra paragraph mark is inserted at the top of each row and is formatted with an exact line spacing measurement. When you insert a new row, the formatting of the first paragraph in the current row is copied to the new row.



STATUS
This functionality is by design.



MORE INFORMATION
WordPerfect 6.x has a feature called "Top Row Margin." Word tries to emulate this feature by inserting an extra paragraph mark at the beginning of each cell and formatting it by setting the Line Spacing option to "Exactly." When a new row is inserted, the new row is also created with exact line spacing.

The default top row margin in WordPerfect 6.x is 0.083 inch. Word translates this measurement to exact line spacing of 6 points.



WORKAROUND
To remove the exact line spacing, use one of the following methods:

Method 1: Use the following steps to change Line Spacing to for the new row to Single:

 Position your insertion point in the new row. On the Table menu, click Select Row. On the Format menu, click Paragraph. Select the Indents and Spacing tab. Change Line Spacing to Single and click OK.</li> Repeat these steps for each new row in the table.</li></ol>

Method 2: Change Line Spacing to Single for the entire table:

<ol style="list-style-type: lower-alpha;"> Place the insertion point in the table.</li> On the Table menu, click Select Table.</li> On the Format menu, click Paragraph.</li> Select the Indents And Spacing tab.</li> Change Line Spacing to Single, and click OK.

NOTE: This method will probably increase the spacing within each table cell. To fix this spacing, you can remove the first paragraph of each cell then apply Spacing Before to the first paragraph of each cell.</li></ol>

Method 3: Create a macro to remove the first paragraph mark of each cell.

This macro works best on documents where the default table margins were not changed in WordPerfect. After you create this macro, position the insertion point in the table and run the macro. Sub MAIN On Error Goto errorhandler TableSelectTable CharLeft 1 Dim dlg As FormatParagraph GetCurValues dlg x$ = dlg.LineSpacing TableSelectTable EditFindPara .LineSpacingRule = 4, .LineSpacing = x$           ' The next two lines should be entered as a single line of code EditReplace .Find = "^p", .Replace = "", .ReplaceAll, .Format = 1,.Wrap= 0 CharLeft errorhandler: Select Case Err Case 509 : MsgBox "Move to a table and run the macro again." Case Else End Select Err = 0 End Sub NOTE: If each row has different margins, then change macro lines 3 and 8 from "TableSelectTable" to "TableSelectRow" and run the macro for each row of the table.

WARNING: ANY USE BY YOU OF THE OR MACRO CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Additional query words: word6 word95 word7 6.0 wordnt ntword table tiny words phonetic cut off

Keywords: kbconversion KB146006

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.