Easiest way to determine how to do something is to record a macro and view the generated code.

Moved from Classic VB.