Welcome to the forums.

Try recording a macro of what you want to script. Then look at
the code generated.

HTH