Borders Collection
Office 2007
| Excel Developer Reference |
Remarks
Use the Borders property to return the Borders collection, which contains all four borders.
You can set border properties for an individual border only with Range and Style objects. Other bordered objects, such as error bars and series lines, have a border that’s treated as a single entity, regardless of how many sides it has. For these objects, you must return and set properties for the entire border as a unit. For more information, see the Border object.
Example
The following example adds a double border to cell A1 on worksheet one.
| Visual Basic for Applications |
|---|
|
Use Borders(
| Visual Basic for Applications |
|---|
|