Similar recent post.

You could also record a macro and get the code.