Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
here is the code:
If Application.CountIf(.Range("z1:z26"), "Name") 0 Then Range("area1").Interior.colorindex = 3 Else Range("area1").Interior.colorindex = 2 End If I would like for the code to say... If Application.CountIf(.Range("z1:z26"), "Name") 0 Then Range("area1").Interior.colorindex = "the color value of cell Z1" I want it to make the color of the cells specified in range "name" the color of whatever color the cell of Z1 is. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nevermind I fixed it.
thanx -----Original Message----- here is the code: If Application.CountIf(.Range("z1:z26"), "Name") 0 Then Range("area1").Interior.colorindex = 3 Else Range("area1").Interior.colorindex = 2 End If I would like for the code to say... If Application.CountIf(.Range("z1:z26"), "Name") 0 Then Range("area1").Interior.colorindex = "the color value of cell Z1" I want it to make the color of the cells specified in range "name" the color of whatever color the cell of Z1 is. . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Range("area1").Interior.colorindex = Range("z1").Interior.colorinde ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing | Excel Discussion (Misc queries) | |||
Populate a cell if values in cell 1 and cell 2 match cell 3 and 4 | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Question: Cell formula or macro to write result of one cell to another cell | Excel Programming |