Reply
 
Thread Tools Display Modes
  #1   Report Post  
Bernd
 
Posts: n/a
Default assign ALT+F4 to a command button in a work document

I need help to assign the function key ALT+F4 (close) to a command button in
a word document

  #2   Report Post  
Anne Troy
 
Posts: n/a
Default assign ALT+F4 to a command button in a work 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

"Bernd" wrote in message
...
I need help to assign the function key ALT+F4 (close) to a command button
in
a word document



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing document link from Work menu -em português no fim da mens Hernani Nitolo Filho Microsoft Word Help 3 April 13th 23 02:08 PM
Word 2003 [email protected] Microsoft Word Help 39 April 19th 06 06:35 PM
macros and SharePoint WSS document libraries [email protected] New Users 0 October 6th 05 03:42 AM
how do I save a document as a work page in Word? Brian Leslie New Users 1 April 5th 05 06:35 PM
After opening document no "arrows" work itz nin Microsoft Word Help 5 March 30th 05 04:46 PM


All times are GMT +1. The time now is 04:51 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"