Fill Color

mtntgr

Board Regular
Joined
Aug 19, 2006
Messages
57
Is there anyway to expand the somewhat limited range of fill (and font) colors in Excel?
e.g.- importing them somehow, html, etc...

Thanks,
Ken
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi Ken

You can do it via VBA, for example:

Code:
ActiveCell.Interior.Color = RGB(FF,0,0)

Where the RGB value is a full 24-bit colour range.

Hope this helps!

Richard
 

mtntgr

Board Regular
Joined
Aug 19, 2006
Messages
57
Details...

Hi Richard,

I'm not too knowledgeable about VBA.

Let's say I wanted to fill a range of cells-
e.g.- A1 to Z39.
Exactly what steps would I take to accomplish this?
Also, "RGB(FF,0,0)" seems to be a mix between hexa-decimal and RGB (or Truecolor).
Or am I wrong on this?

Thanks,
Ken


Hi Ken

You can do it via VBA, for example:

Code:
ActiveCell.Interior.Color = RGB(FF,0,0)

Where the RGB value is a full 24-bit colour range.

Hope this helps!

Richard
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Ken

Sorry, you're absolutely right - I wasn't paying attention to what I was typing.

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

Hope this helps - I don't usually intentionally confuse & obfuscate ;)

Richard
 

Forum statistics

Threads
1,171,186
Messages
5,874,243
Members
433,041
Latest member
spongeavenger

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
Top