Record one using the macro recorder ... tools / macro / record new macro
to view the code tools / macro / macros, click on the one you created and
choose edit
if you record one then you will be able see the code (and make some sense of
it as you'll know what you did to cause the code to be written the way it
is) .. other than that maybe someone else will be able to provide this for
you.