View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Stone Frank Stone is offline
external usenet poster
 
Posts: 134
Default ColorIndex & macros

hi,
Try something like this:
If sheets("sheet2").range("c8").value = "DAN" and _
Sheets("sheet2").range("C8").interior.colorindex _
= 41 then
Activesheet.range("A1").interior.coloridex = 41
end if
Regards
Frank
-----Original Message-----

Hi,

I'm looking to run a macro that references another Sheet.

If the Name, say, DAN shows up in cell C8 and the CELL

color = 41
then activesheet.range(a1) colorindex = 41

if the name DAN shows up in cell C8 and the CELL color = 6
then activesheet.range(a1) colorindex = 6

and so on and so on.

But I'll be damned if I cant figure it out. I'm working

on it as a
side project for my boss... If anyone can help me out,

that'd be
great.

-jlarkin.


--
jlarkin
----------------------------------------------------------

--------------
jlarkin's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=8652
View this thread:

http://www.excelforum.com/showthread...hreadid=272447

.