ACC97: Error Creating CommandBar with Duplicate Name (162822)
The information in this article applies to:
This article was previously published under Q162822 SYMPTOMS
Advanced: Requires expert coding, interoperability, and multi-user skills.
If you try to create a command bar with an existing name by using Visual
Basic for Applications, you may receive the following error message:
Run-time error '5':
Invalid procedure call or argument
If you try to create a command bar with an existing name by using the user
interface, you may receive the following error message:
A toolbar named '<name>' already exists. Type another name.
RESOLUTION
You cannot create multiple command bars with the same name in any Microsoft
Office 97 file, except in Microsoft Word 97.
STATUS
This behavior is by design.
REFERENCES
For more information about creating command bars through code, search the
Help Index for "Add Method, command bars," and then "Add Method,
(CommandBars Collection)."
For more information about creating command bars through the user
interface, ask the Microsoft Office 97 Office Assistant, "How do I
create a command bar."
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kberrmsg kbprb kbui KB162822 |
---|
|