Tandaan
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o baguhin ang mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Returns a Border object that represents one of the borders of either a range of cells or a style.
Syntax
expression.Item (Index)
expression A variable that represents a Borders object.
Parameters
| Name | Required/Optional | Data type | Description |
|---|---|---|---|
| Index | Required | XlBordersIndex | Can be one of the XlBordersIndex constants. |
Example
This following example sets the color of the bottom border of cells A1:G1.
Worksheets("Sheet1").Range("a1:g1"). _
Borders.Item(xlEdgeBottom).Color = RGB(255, 0, 0)
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.