Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make a macro which will conditionally format a cell in range
c5:c27 in worksheet alpha, when the text entered does not match a text entered in a much longer list (A1:A947) in a different worksheet (delta). I dont think i can use a data validation because i need the users to be able to enter a text/value but it just flag up to me that its wrong. the format when its wrong/ different from the list is text colour black, bold italic, cell colour red. any help would be awesome. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would recommend using a worksheet change function. You ae right that data
validation won't acknowledge the wrong value entered. Conditional formating is difficult to return the results. You can't look at the color index of the cell because condition formating while it looks like the color index was changed, it is a differnt property that needs to be check to determine if the condition was met. "project manager" wrote: I am trying to make a macro which will conditionally format a cell in range c5:c27 in worksheet alpha, when the text entered does not match a text entered in a much longer list (A1:A947) in a different worksheet (delta). I dont think i can use a data validation because i need the users to be able to enter a text/value but it just flag up to me that its wrong. the format when its wrong/ different from the list is text colour black, bold italic, cell colour red. any help would be awesome. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Name your range of allowed values on the "delta" sheet (eg "LIST")
Used conditional formatting on the data entry range Formula: =AND(A1<"",ISERROR(MATCH(A1,LIST,0))) Set the "error" format however you want. Tim "project manager" <project wrote in message ... I am trying to make a macro which will conditionally format a cell in range c5:c27 in worksheet alpha, when the text entered does not match a text entered in a much longer list (A1:A947) in a different worksheet (delta). I dont think i can use a data validation because i need the users to be able to enter a text/value but it just flag up to me that its wrong. the format when its wrong/ different from the list is text colour black, bold italic, cell colour red. any help would be awesome. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro recorded... tabs & file names changed, macro hangs | Excel Worksheet Functions | |||
AutoRun Macro with a delay to give user the choice to cancel the macro | Excel Programming | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Start Macro / Stop Macro / Restart Macro | Excel Programming |