Macro to Determine If a Button is on a Toolbar (154904)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q154904 SUMMARY
In Microsoft Excel, you can use a Microsoft Visual Basic for Applications
macro to determine whether a button was added to a specific toolbar.
Because there is no built-in function or property that tests for an
existing button, you must use a For Each...Next loop in conjunction with an
If statement to determine whether a button is on a specific toolbar.
REFERENCES
For more information about Customizing Toolbars in Microsoft Excel version
7.0, click Answer Wizard on the Help menu and type:
how to customize toolbars
For more information about Customizing Toolbars in Microsoft Excel version
5.0, choose the Search button in Help and type:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbcode kbhowto KB154904 |
---|
|