Skip to main content

Range.UseStandardWidth property

Table of contents
  1. Syntax
  2. Example

True if the column width of the Range object equals the standard width of the sheet. Returns null if the range contains more than one column and the columns aren't all the same width. Read/write Variant.

Syntax

expression.UseStandardWidth

expression A variable that represents a Range object.

Example

This example sets the width of column A on Sheet1 to the standard width.

Worksheets("Sheet1").Columns("A").UseStandardWidth = True

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>