Thanks Chris, that is very hand and will replace a couple other macros you have shared on the forum for this purpose.
For more information, see the wiki Searching the Forum for Answers section.