CellColorIndex

  • Thread starter Thread starter solomon_monkey
  • Start date Start date
S

solomon_monkey

Hi,

The following discussion really helped me to get the CellColorIndex
working... still not sure what I was doing wrong but this sorts it...

http://groups-beta.google.com/group..._doneTitle=Back+to+Search&&d#cc1b572a5734531f

Anyhoo- this will only give the colour of a defined cell (in this case
A1...) is there a way to get the cell to the left (i.e. cell M3 in the
exmple I tried below)

Range("L3").ValueR1C1 = CellColorIndex(RC[-1], False)
I have played around with it for ages to no avail.

Many thanks
 
= CellColorIndex(Range("M3").Offset(0,-1)

is this what you mean?

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Sub test()
Dim C%, A$
C = Range("M3").Offset(0, -1).Interior.ColorIndex
A = Range("M3").Offset(0, -1).Address(False, False)
MsgBox A & " = " & C
Range(A) = C
End Sub

???--Lonnie M.
 

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

Back
Top