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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,159
Members
448,948
Latest member
spamiki

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