Microsoft KB Archive/106709

{|
 * width="100%"|

Selection$ in a Table May Return Nothing

 * }

Q106709

-

The information in this article applies to:


 * Microsoft Word for Windows, version 6.0

-

SYMPTOMS
Selection$ returns varying information when the selection occurs in a table. The result varies depending on the content of the selection. Under some conditions, selection$ returns nothing.

Case 1
Selection$ returns a null value if a single cell is selected or multiple cells are selected, including cell markers, and the end-of-row marker is not selected.

Case 2
Selection$ returns a list of values for selections that include the end-of-row marker. List items are separated by a bar to indicate a cell break.

Case 3
Selection$ returns the text of a cell if the contents of the cell are selected without the cell marker.