Thanks that is great and better, I have updated the macro.
For more information, see the wiki Searching the Forum for Answers section.