assign ALT+F4 to a command button in a work document

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need help to assign the function key ALT+F4 (close) to a command button in
a word document
 
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):

ActiveDocument.Close

Hit the Save diskette, close the VBE.
************
Anne Troy
www.OfficeArticles.com
 

Ask a Question

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.

Ask a Question

Back
Top