Works like a charm! Thanks a lot! I'll post my improved version when I release my "library of random extra functions," which includes word$, getpixel, a more forgiving "graphics" command, a distance algorithm shortcut, and an enableLineSmoothing command. Some were gathered from various posts by other people but most are by me.