The information in this article applies to:
SYMPTOMSIn Microsoft Excel, when you use the Caller function, or the Caller property, and the macro currently running was started by choosing a menu command, the array of values returned does not include information about whether the command that ran the macro was located on a top level menu or on a submenu. CAUSE
The Caller function, and the Caller property return information about
the object that called the macro that is currently running. For example,
if you run a macro by choosing a command on a menu, Caller returns
an array of values specifying the position, the menu number, and the
menu bar number of the command that you chose. Caller does not,
however, return information about whether the command was located on a
main menu, such as the File menu, or on a sub menu. STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. This problem was corrected for the
Caller function in Microsoft Excel version 5.0c and Microsoft Excel for
Windows 95 version 7.0. 1, 1, 10, 2where the position of the command (Item One) on the submenu is 1, the menu (File) is 1, the bar number (Worksheet and Macro sheet) is 10, and the position of the command on the main menu (Two) is 2. If the command that runs the macro is not located on a submenu, the value returned as the fourth element in the array is 0. NOTE: This problem has not been corrected for the Caller property. REFERENCESFor more information about Caller, choose the Search button in the Microsoft Excel Macro Functions Help and type: Caller functionFor more information about the Caller Property, choose the Search button in the Visual Basic Reference and type: Caller Property Additional query words:
Keywords : |
Last Reviewed: September 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |