I think you copied that code wrong. I can't get it to run in Quick Basic Extended.