Excel: GET.TOOLBAR(9) Function Returns Incomplete Array of IDs

ID: Q93492


The information in this article applies to:


SUMMARY

When you start Microsoft Excel, the docked tool bars are loaded before the floating tool bars. The way these tool bars are loaded may present a problem if you are using an Auto_Open macro that uses the GET.TOOLBAR(9) function. Since the Auto_Open macro may be run before the floating tool bars are loaded, the GET.TOOLBAR(9) function will return an incomplete array of tool bar IDs.


MORE INFORMATION

The GET.TOOLBAR() function is used to return information about one tool bar or all tool bars. GET.TOOLBAR(9) returns an array of tool bar IDs for all visible tool bars.

The GET.TOOLBAR() function may not return a complete array of tool bar IDs if you use it in an Auto_Open macro (a macro that loads automatically when you start Microsoft Excel). The following situations will cause the macro to run before the floating tool bars are loaded, which will result in an incomplete array of tool bar IDs.

Microsoft Excel for the Macintosh and Microsoft Excel for Windows

Microsoft Excel for Windows

Workaround for Microsoft Excel for Windows

To load the floating tool bars before the macro is started, use one of the following methods to start Microsoft Excel:

There is no workaround for Microsoft Excel for the Macintosh.


REFERENCES

"Online Help," version 5.0
"Function Reference," version 4.0, pages 206-207

Additional query words: 4.00a 5.0 float tool bar


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 30, 1999