Microsoft KB Archive/68993

{|
 * width="100%"|

Excel Patterns Listed Out of Sequence from Macro

 * }

-

The information in this article applies to:


 * Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

-

SUMMARY
The patterns listed on the dialog box after choosing Patterns from the Format menu are listed out of the sequence that they can be accessed from a macro.

MORE INFORMATION
The PATTERNS macro command allows you to choose one of the 18 available patterns that are listed on the Format Patterns dialog box. The corresponding values are listed below.

Sequence from Macro
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

Sequence on Dialog
1 3 2 4 7 8 9 10 11 12 13 14 15 16 17 18 5 6

Example
If you wanted to access the fifth pattern from the Format Patterns dialog, it would be necessary to have a macro command that looks like:

=PATTERNS(17)