Skip to main content

Border.Weight property

Table of contents
  1. Syntax
  2. Remarks
  3. Example

Returns or sets an XlBorderWeight value that represents the weight of the border.

Syntax

expression.Weight

expression A variable that represents a Border object.

Remarks

Example

This example sets the border weight for oval one on Sheet1.

Worksheets("Sheet1").Ovals(1).Border.Weight = xlMedium

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>