Excel: OK Button in Dialog Box Does Not Return a "True" Value

Last reviewed: November 2, 1994
Article ID: Q64657

SUMMARY

Page 174 of the "Microsoft Excel Functions and Macros" version 2.2 manual incorrectly states that when an OK button is clicked in a custom dialog box, a value of "True" is returned to the macro sheet.

Clicking an OK button actually returns a number value to the macro sheet. The number is equal to the position of the OK button in relation to all other items in the Item Number column of the dialog box definition table.

For example, if there are seven different items in the Item Number column of the dialog box definition table and the OK button is the fifth in the list, clicking the OK button will return a 5 to the cell on the macro sheet containing the DIALOG.BOX function.


KBCategory: kbother
KBSubcategory:



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.