As long as it's okay to be asked to save it, just put a command button on
the document using the Control Toolbox, then double-click the command
button, and type the following at the insertion point in the Visual Basic
Editor (VBE):
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.