Maybe, you will not believe, but the macro works without problems for me. I've tested it on different combinations of digits, even excluding 1 and 9. Anyway, if you know the cause of malfunction, you can remove it. Or (better) out of curiosity, I'd like to see the problem part of your file, if you don't mind.
|