Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
I'm using a macro for setting a field color based on a specific text in the same cell. Part of the Macro: If cell.Value Like "*XXX*" Then cell.Interior.ColorIndex = 24 Question: I want to extend my macro to check also a text which is in the same row but 2 columns before. (So the macro should be: Active cell.value like "*XXX*" and 2 columns to left cell.value "YYY" Then.......). For another part I also want to set a specific text in the same row 2 columns to the right. (So the macro should be: Then cell.Interior.ColorIndex = 24 and 2 columns to the right set cell value "ZZZ"). Can please somebody help me out. regards and thanks ! Johan |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Extend Formula, but not Color | Excel Discussion (Misc queries) | |||
Conditional Formatting - Icon Rule - Three Color Arrows | Excel Discussion (Misc queries) | |||
Setting a cell rule | Excel Discussion (Misc queries) | |||
Change text color of specific date range by macro in Excel | Excel Programming | |||
text conversion in cells and setting color in rows.....(excel 97) | Excel Programming |