The information in this article applies to:
SUMMARYIn Microsoft Word 97 for Windows, there is no built-in functionality for making commands unavailable on the Title Bar Control menus. This article provides a macro you can use to selectively disable some or all of these commands on the Word 97 for Windows application title bar. MORE INFORMATIONMicrosoft provides programming examples for illustration only, without
warranty either expressed or implied, including, but not limited to, the
implied warranties of merchantability and/or fitness for a particular
purpose. This article assumes that you are familiar with the programming
language being demonstrated and the tools used to create and debug
procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to
provide added functionality or construct procedures to meet your specific
needs. If you have limited programming experience, you may want to contact
the Microsoft fee-based consulting line at (800) 936-5200. For more
information about the support options available from Microsoft, please see
the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/refguide/ To disable Title Bar commands in Microsoft Word 97 for Windows on a Microsoft Windows 95, Windows 98, or Windows NT 4.0 system, type the macro code found in this article in the Visual Basic Editor. This code removes the items from the menu listing in the current session of Word and disables the buttons on the right side of the title bar. After running this code, the Microsoft Word window is locked on the screen, and you cannot move or close it with the mouse. To close Microsoft Word, press ALT+F4. To restore the menu, you must quit Microsoft Word; if WordMail for Microsoft Outlook, Microsoft Outlook Express, or Microsoft Exchange Inbox is running in the background, you must quit these programs, and then restart Microsoft Word. When using Visual Basic for Applications on system features, this macro uses Win32API code, which gives you greater customization options.
For additional information, please see the following article in the Microsoft Knowledge Base: OFF97: How to Run Sample Code from Knowledge Base Articles Also see the "Microsoft Windows Software Development Kit (SDK) Programmer's Reference" manual. Additional query words: vba api commandbars toolbar controls
Keywords : kbwordvba |
Last Reviewed: April 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |