Not
Åtkomst till denna sida kräver auktorisation. Du kan prova att logga in eller byta katalog.
Åtkomst till denna sida kräver auktorisation. Du kan prova att byta katalog.
Returns a CellRange object that represents the cells in a table selection.
Syntax
expression.TableCellRange
expression A variable that represents a Selection object.
Return value
CellRange
Example
This example fills the table cells in a selection.
Sub FillTableCellRange()
Dim intCount As Integer
With Selection
If .Type = pbSelectionTableCells Then
With .TableCellRange
For intCount = 1 To .Count
.Item(intCount).Fill.ForeColor.RGB = RGB _
(Red:=0, Green:=255, Blue:=255)
Next intCount
End With
End If
End With
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.