Cell color

G

Grant Reid

Hi

Is there any function that will return the color and shading of a given
cell?

Any help would be much appreciated.

Many thanks - Grant
 
F

Frank Kabel

Hi
you need VBA for this. Using a user defined function. e.g.
for the colorindex try something like
public function color_index(rng as range)
color_index=rng.interior.colorindex
end function

note: not much error checking included, etc.
Call it on your worksheet with
=COLOR_INDEX(A1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top