Definitely useful thing, several times requested, but never found its way in:
Link
See also a macro solution.