Skip to main content

Interior.PatternColor property

Table of contents
  1. Syntax
  2. Example

Returns or sets the color of the interior pattern as an RGB value. Read/write Variant.

Syntax

expression.PatternColor

expression A variable that represents an Interior object.

Example

This example sets the color of the interior pattern for rectangle one on Sheet1

With Worksheets("Sheet1").Rectangles(1).Interior
    .Pattern = xlGrid
    .PatternColor = RGB(255, 0, 0)
End With

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>