Notes
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Returns a Cells collection that represents the table cells in a selection. Read-only.
Syntax
expression .Cells
expression A variable that represents a Selection object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example sets the current cell's background color to red.
If Selection.Information(wdWithInTable) = True Then
Selection.Cells(1).Shading.BackgroundPatternColorIndex = wdRed
Else
MsgBox "The insertion point is not in a table."
End If