In reply to Rick Wicklin.

Thanks for your articles, Rick.
The macro given by Bing still lacks the length statement for var result.