mahmed1
Well-known Member
- Joined
- Mar 28, 2009
- Messages
- 2,266
- Office Version
- 365
- 2016
- Platform
- Windows
HI All,</SPAN> |
I have this code below.</SPAN> |
If Status <> "Yellow Task" And Status <> "Pink Task" And Status <> "Green Task" And Status <> "Purple Task" And Status <> "Other" Then</SPAN> |
Do Stuff….</SPAN> |
Now I have this status list already defined (Code) in a worksheet</SPAN> |
i.e - Defined - Names - Code</SPAN> |
Yellow Task</SPAN> |
PinkTask</SPAN> |
Green Task</SPAN> |
Purple Task</SPAN> |
Other</SPAN> |
Now how can I amend the code to say if status is <> one the items in the defined name (Code) then</SPAN> |
do stuff</SPAN> |
This way I can just update my code list rather than updating the code if I had more criterias</SPAN> |
Thank You</SPAN> |
<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>