VBA colorindex

cdiffell

New Member
Joined
Mar 14, 2002
Messages
46
Does anyone know where I can find a list of valid codes for colors in Excel? Either the 2-digit number or the long text name would be fine.

Thanks for any help!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hmm, i just found it OK. Try typing in colorindex in the VBA code window, highlighting it and pressing F1. If you don't get anything you might not have the VBA help files installed.
 
Upvote 0
Well, whaddya know, it worked. Now how come when I used the help index to search for "colorindex", it did NOT find that? I never thought of using F1 on the highlighted value.

Thanks!
 
Upvote 0
You're right, it doesn't appear unless, under the Contents tab, you're referencing Microsoft Excel VB.
 
Upvote 0

Forum statistics

Threads
1,214,628
Messages
6,120,618
Members
448,973
Latest member
ChristineC

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top