Sei sulla pagina 1di 5

7/5/2019 Excel VBA color code list - ColorIndex, RGB color, VB color

Translate

      Search... 

EXCEL ACCESS WORD PROJECT SPSS CONTACT ME ABOUT

Excel VBA color code list – ColorIndex, RGB color, VB color


 Posted on August 23, 2015 by Wyman W

report this ad
Replay

FOLLOW ME

 Login with facebook

 Login with twitter

This Excel tutorial collects the VBA color code list for reference purpose, which includes ColorIndex, RGB color, VB
color.
STATISTICS
Excel ColorIndex
Today's Visits: 1,413
VBA Excel ColorIndex Property is to set color or get color for Objects like Cell color and Shape color. ColorIndex o ers
Today's Visitors: 1,135
56 basic colors plus the following special numbers.
Yesterday's Visits: 5,166

Yesterday's Visitors: 3,472

ColorIndex Value Explanation

-4142 / xlColorIndexNone / xlNone No ll

-4105 / xlColorIndexAutomatic / xlAutomatic Default color (white)

report this ad

CATEGORIES

Select Category

ARCHIVES
Hoteles en Hoteles en La Paz Hoteles en Santa Cruz
x
Cochabamba desde $7 de la Sierra
desde $8 desde $9
Reserve ahora Reserve ahora Reserve ahora

https://access-excel.tips/excel-vba-color-code-list/ 1/5
7/5/2019 Excel VBA color code list - ColorIndex, RGB color, VB color

Select Month x

report this ad

RECENT POSTS

MS Access select the rst record of each group


using First Function

Access VBA delete Table records with SQL using


DoCMD.RunSQL Method

Add sorting in Access Table eld

Access Case Sensitive Join Table (Inner Join, Left


Join)

Access StrComp Function to Compare text (case


sensitive comparison)

Access VBA import workbook to Access using


Example 1: Set Cell A1 font color to red Transferspreadsheet

Access VBA run Query or run Action Query

Access VBA loop through all Tables using


Range("A1").Font.ColorIndex = 3
DAO.TableDef

Access VBA delete Table using


DoCmd.DeleteObject Method
Example 2: Set Cell A1 back color to red
Access VBA import txt using DoCmd.TransferText
Method

MS Project shift the whole schedule

MS Project delete Summary Task without deleting


subtasks

Access VBA loop through Table records


Range("A1").Interior.ColorIndex = 3 Microsoft Access produce Cartesian product with
Cross Join

Solution to Access Error 3047 Record is too large


Example 3: Set Cell A1 border color to red
Access replace Crosstab Query with Expression

Access VBA change Query criteria using


Range("A1").Borders.ColorIndex=3 QueryDef.SQL Property

Quickly search email in Outlook using criteria

Access VBA create Query using CreateQueryDef


Example 4: Get Cell A1 ColorIndex
Sort Data in Access Report

col = Range("A1").Interior.ColorIndex

Excel RGB color


VBA Excel RGB Property is a color Property of Objects, commonly used for Cell color or Shape color.

Hoteles en Hoteles en La Paz Hoteles en Santa Cruz


x
Cochabamba desde $7 de la Sierra
desde $8 desde $9

Reserve ahora Reserve ahora Reserve ahora

report this ad

https://access-excel.tips/excel-vba-color-code-list/ 2/5
7/5/2019 Excel VBA color code list - ColorIndex, RGB color, VB color
“RGB” stands for Red Green Blue, which are known as three primary colors, which can be combined to produce other x
colors. For example, purple is a mix of blue and red.  In RGB Property, you need to give a value (from 0 to 255) for each
color in order to mix a new color. For example, Red = 255 means the brightness of color red is 100%.

If you try to change a color but you don’t know the color code, you can visit the websites below

http://www.ifreesite.com/color/

http://big-coronasdklua.blogspot.hk/2011/04/rgb.html

Example 1: Set Cell A1 font color to red

Range("A1").Font.Color = RGB(255, 0, 0)

Hoteles en Hoteles en La Paz Hoteles en Santa Cruz


x
Example 2: Set Cell A1 back color toCochabamba
red desde $7 de la Sierra
desde $8 desde $9
Reserve ahora Reserve ahora Reserve ahora

Range("A1").Interior.Color = RGB(255, 0, 0)

Example 3: Set Cell A1 border color to red

Range("A1").Borders.Color = RGB(255, 0, 0)

https://access-excel.tips/excel-vba-color-code-list/ 3/5
7/5/2019 Excel VBA color code list - ColorIndex, RGB color, VB color

Excel VB color x

The simplest way to apply color is using the VB color name, you don’t have to remember which number represents
which color, the the color for your choice is very limited.

Example: Set Cell A1 font color to red

Range("A1").Font.Color = vbRed

Wyman W

Compensation Survey Manager@Mercer


Wyman is human resources professional, specialized in business analysis, project management, data
transformation with Access and Excel.

He is also a:
- Microsoft Most Valuable Professional (Excel)
- Microsoft Community Contributor
- Microsoft O ce Specialist in Access / Excel
- Microsoft Specialist in MS Project
- Microsoft Technical Associate
- Microsoft Certi ed Professional
- IBM SPSS Specialist

You may drop me a message if you are interested in HR consultancy services from Mercer.

Leave a Reply
Social connect:

 Login with facebook  Login with twitter

Your email address will not be published. Required elds are marked *

Comment

Name *

Email *
Hoteles en Hoteles en La Paz Hoteles en Santa Cruz
x
Cochabamba desde $7 de la Sierra
Website desde $8 desde $9

Reserve ahora Reserve ahora Reserve ahora

POST COMMENT

COPYRIGHT © 2019 ACCESS-EXCEL.TIPS FREE WORDPRESS THEME | ACCESSPRESS LITE

https://access-excel.tips/excel-vba-color-code-list/ 4/5
7/5/2019 Excel VBA color code list - ColorIndex, RGB color, VB color
x

https://access-excel.tips/excel-vba-color-code-list/ 5/5

Potrebbero piacerti anche