Selection$() in a Table May Return Nothing

ID: Q106709

The information in this article applies to:

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.

REFERENCES

"Microsoft Word User's Guide," Chapter 10, "Tables," "Moving, Selecting, and Editing Within a Table" section

Kbcategory: kbusage kbmacro KBSubcategory: Additional query words: 6.0 select empty wordbasic command word6 winword

Version           : 6.0
Platform          : WINDOWS

Last Reviewed: July 30, 1997