Start macro recording, do what you want to do, end macro recording, and edit the macro to view how Word does it. Then do it the same way.
You guys know how the Show/Hide button works, right. When you click it the Paragraph mark displays and the button remains highlighted. Then when you click it again the Paragraph mark goes away and the button is no longer highlighted.
I want to know what VBA code I can use to give that same kind of functionality to macro buttons that I create.