WD97: Selection.Information Returns Incorrect Information from Merged Cells in Word Table

ID: Q240232


The information in this article applies to:
  • Microsoft Word 97 for Windows


SYMPTOMS

When you use the Selection.Information(wdStartOfRangeColumnNumber) or Selection.Information(wdStartOfRangeRowNumber) method to return the column or row number from a Word table with merged cells, the information returned does not take into account that a table contains merged cells. Thus the returned information cannot be used to reference cells in rows that contain merged cells.


WORKAROUND

To work around this problem, use Visual Basic for Applications code to loop through and mark Row, Column using the Tables(n).Columns.Count and Tables(n).Rows.Count of each cell while keeping track of count manually.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

Additional query words: VBA VBE VB

Keywords :
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: October 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.