PPT97: Macro Recorder Doesn't Record Code Moving Command Bars

Last reviewed: March 13, 1998
Article ID: Q165964
The information in this article applies to:
  • Microsoft PowerPoint 97 for Windows

SYMPTOMS

If you record a macro to move a command bar to a specific location, the macro recorder does not record any commands. However, you can record commands to turn on, turn off, remove, or add a command bar.

CAUSE

When you record a macro, the macro recorder attempts to analyze the actions and then create the equivalent Microsoft Visual Basic for Applications code. The CommandBar object is a portion of the Microsoft Office 97 object model. PowerPoint does not record code for objects that are not a part of the PowerPoint object model.

RESOLUTION

In PowerPoint 97 all of the toolbars--Standard, Formatting, Drawing, and so forth--in the object model, are part of the CommandBars and CommandBarControls collections. Using the Visual Basic Editor, you can write Visual Basic for Applications code to control the behavior of the CommandBars.

For more information about the CommandBar object, click the Office Assistant in the Visual Basic Editor, type "CommandBar," click Search, and then click to view "Using command bars."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If the Assistant is not able to answer your query, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q176476
   TITLE     : OFF: Office Assistant Not Answering Visual Basic Questions


Additional query words: 97 8.00 kbmacro ppt8 vba vbe toolbar
Keywords : kbcode kbmacro kbprg kbdta kbdtacode kbpptvba
Version : WINDOWS:97
Platform : WINDOWS
Hardware : x86
Issue type : kbprb


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.