Can someone silplify this simple code?

dougp:
Try searching the forum for 'combination lock'.

Ty! I did try to find it before posting without any success. GOt it now.