OFF98: Cannot Dismiss Office Assistant with the Keyboard

ID: Q183281


The information in this article applies to:
  • Microsoft Office 98 Macintosh Edition
  • Microsoft Excel 98 Macintosh Edition
  • Microsoft Word 98 Macintosh Edition
  • Microsoft PowerPoint 98 Macintosh Edition


SYMPTOMS

In the programs listed at the beginning of this article, there is no key or combination of keys on the keyboard that you can use to dismiss the Office Assistant.


CAUSE

You can dismiss the Office Assistant only by using a mouse or other pointing device, or a Visual Basic for Applications macro.


STATUS

This behavior is by design of the programs that are listed at the beginning of this article.


MORE INFORMATION

If you press CONTROL and click the Office Assistant window in any Microsoft Office 98 program, one of the commands on the shortcut menu that appears is Hide Assistant. If you press H while the shortcut menu is visible, the Office Assistant is dismissed. You cannot display the shortcut menu by using only the keyboard. However, you can write a Visual Basic for Applications macro to display or hide the Office Assistant

Microsoft 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/overview/overview.asp
To use a macro to display or hide the Office Assistant, use the following macro:

   Sub ToggleOfficeAssistant()
      Assistant.Visible = Not Assistant.Visible
   End Sub 
When you run this macro, if the Office Assistant is visible, it is dismissed. If the Office Assistant is not visible, it is displayed. This macro works in all Microsoft Office 98 Macintosh Edition programs.

In Microsoft Excel 98, you can assign a shortcut key to the ToggleOfficeAssistant macro by running the following macro:

   Sub SetShortcutKey()
       Application.MacroOptions Macro:="ToggleOfficeAssistant", _
          HasShortcutKey:=True, ShortcutKey:="o"
       ' Note that "o" is the letter "o."
   End Sub 
After you have run the SetShortcutKey macro, press OPTION+COMMAND+O to run the ToggleOfficeAssistant macro and turn your Office Assistant on or off.

Additional query words: OFF98 XL98 WD98 PP98

Keywords : xlui xlvbahowto offhelp xlhelp
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type :


Last Reviewed: December 10, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.