XL5: Error Using Statusbar Argument for Add Method (136145)



The information in this article applies to:

  • Microsoft Excel for Windows 5.0a

This article was previously published under Q136145

SYMPTOMS

In Microsoft Excel version 5.0, if the StatusBar argument of the Add method is used, you will receive the following error message:
428 Object doesn't support this property or method

CAUSE

In Microsoft Excel version 5.0c, new arguments were added to Add method of the Toolbar buttons collection. Versions earlier than 5.0c do not contain these arguments. Therefore, if you are using Visual Basic code in an earlier version of Microsoft Excel than version 5.0c, these new arguments will fail.

WORKAROUND

To work around this problem, run the macro in version 5.0c or disable the StatusBar argument.

MORE INFORMATION

For more information on working with StatusBar text, query on the following article in the Microsoft Knowledge Base:

112632 XL5: Setting Status Bar Text and ToolTips for Toolbar Buttons


Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbProgramming KB136145