@KBM, here's the macro library I was referring to above:
For more information, see the wiki Searching the Forum for Answers section.