start the macro recorder in Word, then choose select all from the menu or use Ctrl + A

edit the macro, It will show u how to do it.