Checking the Selection Type

The Selection object has a number of properties, including many that you've seen already with the Document and Range objects. The few properties that are unique to the Selection object aren't particularly useful, so I won't discuss them here. The lone exception is the Type property, which returns the type of selection:

wdNoSelection wdSelectionColumn wdSelectionIP

wdSelectionNormal wdSelectionRow

Nothing is selected. A column in a table is selected. The selection is the insertion point. Some text is selected. A row in a table is selected.

0 0

Post a comment