You could do something like this
Code:If Instr(1,"|2001|2002|2003|2011|2012|2017", "|" & ShD.Cells(C.Row, intYearCol).Value & "|") >0 Then 'Your other code End if
You could do something like this
Code:If Instr(1,"|2001|2002|2003|2011|2012|2017", "|" & ShD.Cells(C.Row, intYearCol).Value & "|") >0 Then 'Your other code End if
A dream is not something you see when you are asleep, but something you strive for when you are awake.
It's usually a bad idea to say that something can't be done.
The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve
Join us at Facebook
to make it work. i added one extra vertical bracket If Instr(1,"|2001|2002|2003|2011|2012|2017|", "|" & ShD.Cells(C.Row, intYearCol).Value & "|") >0 Then
thanks alot
if this is the one to include
what could be the opposite of this.
for example
i would say exclude "|1998|1995|1992|1978|1983|1977|"
is it something like i use Not or there is another trick for excluding?
thanks Admin
Bookmarks