Change this type of code to
Code:
 Case "1"		  ' sets A var to 1 if 1 is pressed and If-Then below is correct..
 IF (A=0) AND (B=1) AND (C=1) AND (D=1) AND (E=1) AND (F=0) AND (G=1) THEN A=1

'1st # in the correct sequence --- 2 = B
 Case "2"		  ' sets B var to 1 if 2 is pressed and If-Then below is correct..
 IF (A=0) AND (B=0) AND (C=0) AND (D=0) AND (E=0) AND (F=0) AND (G=0) THEN B=1
to this type of code throughout the case structures.
Code:
 Case "1"		  ' sets A var to 1 if 1 is pressed and If-Then below is correct..
 IF (A=0) AND (B=1) AND (C=1) AND (D=1) AND (E=1) AND (F=0) AND (G=1) THEN
      A=1
 endif

'1st # in the correct sequence --- 2 = B
 Case "2"		  ' sets B var to 1 if 2 is pressed and If-Then below is correct..
 IF (A=0) AND (B=0) AND (C=0) AND (D=0) AND (E=0) AND (F=0) AND (G=0) THEN
     B=1
 endif