Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Represents the color and weight settings for cell borders.
Remarks
Use the various border properties of the Cell object to return the different borders of a cell (left, right, top, bottom, and diagonal).
Use the Color and Weight properties of the CellBorder object to format the appearance of a cell border.
Example
The following example retrieves the top border of the first cell in a table.
Dim cbTemp As CellBorder
Set cbTemp = ActiveDocument.Pages(1) _
.Shapes(1).Table.Cells.Item(1).BorderTop
The following example makes the left border of the first cell in a table red and two points thick.
Dim cbTemp As CellBorder
Set cbTemp = ActiveDocument.Pages(1) _
.Shapes(1).Table.Cells.Item(1).BorderLeft
cbTemp.Color.RGB = RGB(255, 0, 0)
cbTemp.Weight = 2
Properties
See also
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.