Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default CellColorIndex

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/...1b572a5734531f

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default CellColorIndex

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

is this what you mean?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"solomon_monkey" wrote in message
ups.com...
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/...1b572a5734531f

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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default CellColorIndex

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CellColorIndex Steven Excel Worksheet Functions 3 October 1st 08 08:47 PM
CellColorIndex - not working. Malcom Jazz[_3_] Excel Programming 0 October 6th 04 03:04 PM
CellColorIndex - not working. Malcom Jazz[_3_] Excel Programming 2 October 6th 04 02:48 PM
CellColorIndex - not working Malcom Jazz[_3_] Excel Programming 2 October 6th 04 02:21 PM


All times are GMT +1. The time now is 09:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"