Excel Patterns Listed Out of Sequence from Macro

Last reviewed: November 4, 1994
Article ID: Q68993
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)

REFERENCES

"Function Reference," version 4.0, page 320-321 "Function Reference," version 3.0, page 179


KBCategory: kbprg kbmacro
KBSubcategory:

Additional reference words: 5.00 3.00 3.0 4.00 4.0 color border shade


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 4, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.