Selection$() in a Table May Return Nothing

Last reviewed: July 30, 1997
Article ID: 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.

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


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 30, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.