Jim, try placing a function NO at the very end of your SUbroutine. If that doesn't do it, send me the relevant fragment in a private file. It's a common problem, always easily fixable.