Try not to use the SELECT CASE but multiple IF INGROUP statements, because select case will execute only the first true case is finds and move on.