Page 255 - Microsoft Office Excel 2003 Programming Inside Out
P. 255

Formatting Excel Objects

                    Table 10-4.  The RGB Values of Standard HTML Colors  (continued)
                    Color                 R      G      B    Color                R      G       B
                    violet              238    130    238    wheat              245    222     179
                    white               255    255    255    whitesmoke         245    245     245
                    yellow              255    255      0    yellowgreen        154    205      50



                             For more information on how to publish Excel worksheets and workbooks to the Web, see Chapter 25,
                             “Excel and the Web.”
                             Some of the work of matching colors from the Excel palette to the Web has been done for
                             you. Table 10-5 lists the colors in the Excel palette that closely correspond to the standard
                             HTML colors.
                             Table 10-5.  Excel Palette Colors That Correspond to HTML Colors
                             Excel Color             HTML Color                 R        G        B
                             Color 1 (Black)         black                      0        0        0
                             Color 2 (White)         white                    255      255      255
                             Color 3 (Red)           red                      255        0        0
                             Color 4 (Green)         lime                       0      255        0
                             Color 5 (Blue)          blue                       0        0      255
                             Color 6, 27 (Yellow)    yellow                   255      255        0
                                                                                                             Chapter 10
                             Color 7, 26 (Magenta)   fuschia                  255        0      255
                             Color 8, 28 (Cyan)      aqua                       0      255      255
                             Color 9, 30             maroon                   128        0        0
                             Color 10                green                      0      128        0
                             Color 11, 25            navy                       0        0      128
                             Color 12                olive                    128      128        0
                             Color 13, 29            purple                   128        0      128
                             Color 14, 31            teal                       0      128      128
                             Color 15                silver                   192      192      192
                             Color 16                gray                     128      128      128
                             Color 19                lightyellow              255      255      204
                             Color 44                gold                     255      204        0
                             Color 45                darkorange               255      153        0


                             Caution  Some of the Excel palette and HTML colors in this list actually differ by a small
                             amount, but the colors are practically identical to the human eye.


                                                                                                       229
                                                                                                Part 4:  Advanced VBA
   250   251   252   253   254   255   256   257   258   259   260