Microsoft KB Archive/222711

= PPT2000: Macro Recorder Doesn't Record Code Moving Command Bars =

Article ID: 222711

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft PowerPoint 2000 Standard Edition

-



This article was previously published under Q222711





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 object model. PowerPoint does not record code for objects that are not a part of the PowerPoint object model.



RESOLUTION
In PowerPoint, 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.

Additional query words: 9.00 ppt9 vba vbe ppt2k powerpt vba2k ppt9.0 ppt2000 program programming

Keywords: kbcode kbdtacode kbmacro kbprb kbprogramming KB222711

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.