Have you recorded a macro? You can do that to get a basic idea of the code and then alter it for your button.
Click on record a macro, do your actions, click stop recording then go into the editor to look at the code.
If you have difficulty adjusting the code, post what you have here with a description of how you want to change it.