I tried your code, Henrik. It's not working. I do not understand why. It looks like it should work. LED1 and LATCH1 light up on start. LED2 and LATCH2 are off. Neither push button does anything. I haven't tried your code yet, Acetronics, but I will.

Thank you very much for all the help you have been giving me, BTW. I appreciate it very much.