View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
external usenet poster
 
Posts: 11,272
Default Finding Cell Interior Colour of First Cell in Column

Not sure I fully understand, but here goes

myVar = Cells(1,Range("the_named_cell").Column).Interior.C olorindex

--

HTH

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


"ExcelMonkey" wrote in message
...
I have a column with data in it. The column grows over
time during a sub routine (i.e. it get longer) I want to
pass the first cells (say A1) interior colour to a
variable. However none of the cells in the column are
named except the most recent addition (say A30). I want
to be able to take the named cell extract from that the
first cell in that columns address. Similar to doing an
xlUp from the named cell.

Is the xlUP the only way I can do this. And if so, what
do I do after the xlUp to actuallly select the first
cell. I was hoping I could do this without selecting
cells.

Thanks