colour index from F1 in VBA

Paula Office

New Member
Joined
Aug 5, 2009
Messages
24
Hello,

In 2000 in the VBE window you could press F1 in a piece of code and see a list of the colours available with the relevant colour code. I can't seem to do this anymore. After a bit of searching I am still none the wiser.

Can anyone tell me if there is a list anywhere?

Thanks
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Do you mean how you can use the Interior or Font Color options and what they are. Some options you can refer to vbColor such as

Range("A2").Interior.Color = vbRed
Range("A2").Interior.Color = vbBlue
Range("A2").Interior.Color = vbGreen
Range("A2").Interior.Color = vbCyan
Range("A2").Interior.Color = vbYellow
Range("A2").Interior.Color = vbWhite

Other methods you would use the ColorIndex method

Range("A2").Interior.ColorIndex = 3
Range("A2").Interior.ColorIndex = 4

Or using the RGB method

So I assume you want the ColorIndex method or RGB

Here is a link to one of many website that will help you

http://dmcritchie.mvps.org/excel/colors.htm
 
Upvote 0
Thank you for your response, I wasn't sure what grouping they were previously only that you could press F1 in the word colourindex and get a colour pallet appear. However, the first list you have described will be fine for what I have in mind.

Thank you once again.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,547
Members
452,925
Latest member
duyvmex

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