Pattern Property

Pattern returns or sets the fill pattern. Returns a string.

Syntax

object.Pattern

object.Pattern = Pattern

Parameter

Type

Description

Pattern

String

required

Remarks

A fill pattern must be set for a fill color to show. See ForeColorRGBA and BackColorRGBA for more information on setting colors.

Example 1

This example demonstrates how to return a fill pattern.

Debug.Print FillFormat.Pattern

Example 2

This example demonstrates how to set a fill pattern to diagonal cross.

FillFormat.Pattern = "Diagonal Cross"

Used by: FillFormat object

See Also

Fill Properties