The information in this article applies to:
SUMMARYIn Microsoft Excel 97, when you use the MsgBox function to display a Help button in a message box, the Visual Basic for Applications procedure you use is different from the procedure you use in earlier versions of Microsoft Excel. The MsgBox function requires a new constant, vbMsgBoxHelpButton, to display a Help button. You must use the constant in combination with the Helpfile and Context arguments. In earlier versions of Microsoft Excel, when you use the MsgBox function, no constants are required to display a Help button in a message box. Instead, Microsoft Excel automatically displays a Help button if you provide the information for the Helpfile and Context named arguments. MORE INFORMATION
The MsgBox function in Visual Basic for Applications displays a message in
a dialog box, waits for the user to click a button, and returns an integer
that indicates which button the user clicked. The buttons displayed in the
dialog box may vary, depending on the constants you use with the MsgBox
function.
http://www.microsoft.com/support/supportnet/overview/overview.asp ExampleThe following macro example uses the vbMsgBoxHelpButton constant to display a Help button in a message box:
Issues to Consider When You Upgrade to Microsoft Excel 97In earlier versions of Microsoft Excel, when you create a file that contains a macro that uses the MsgBox function to display a Help button and you open the file in Microsoft Excel 97, there are several issues to consider. These issues are the following:
REFERENCESFor more information about the MsgBox Function, click the Index tab in Microsoft Visual Basic for Applications Help, type the following text msgboxand then double-click the selected text to go to the "MsgBox function" topic. Additional query words: xlvbmigrate
Keywords : kbprg kbdta KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |