ID: Q112099
5.00 WINDOWS docerr kbdocerr
The information in this article applies to:
In Microsoft Excel version 5.0, the Visual Basic Reference Help topic on the ToolbarButton Method incorrectly states that you can use the name of a button to index toolbar buttons. This information is incorrect. If you use the name of the toolbar button to index the button, you will receive the following error message:
Run-time error '1004':
ToolbarButtons method of Toolbar class failed.
To index a toolbar button, you must use the number of the button, not the
name.
To find the toolbar button's number, count the buttons (from left to right) on the toolbar that contains the button.
NOTE: Blank spaces between buttons count as one button.
To find the ToolbarButton Method Help topic, do the following:
1. From the Help menu, choose Contents, and select Programming with Visual
Basic.
2. Choose Search, and type the following:
ToolbarButtons Method
3. Choose Show Topics, then choose Go To.
KBCategory: kbdocerr KBSubcategory:
Additional reference words: 5.00
Version : 5.00
Platform : WINDOWS
Last Reviewed: September 14, 1996