OFF2000: New Behavior with MsgBox Function (236808)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Access 2000
- Microsoft FrontPage 2000
- Microsoft PowerPoint 2000
- Microsoft Word 2000
This article was previously published under Q236808 SYMPTOMS
In Microsoft Office 2000, when you use the MsgBox function in Visual Basic for Applications to display a Help button in a message box, the procedure may be different from the procedure that you used in earlier versions of the product. The vbMsgBoxHelpButton constant is needed to display a Help button. You must use the constant in combination with the Helpfile and Context arguments.
In earlier versions of Visual Basic for Applications, when you use the MsgBox function, no constants are required to display a Help button in a message box.
Instead, the MsgBox function displays a Help button automatically if you just include information for the Helpfile and Context named arguments.
CAUSE
This behavior first changed in Microsoft Excel 97. Now the MsgBox function has the same behavior throughout all Microsoft Office products that use the Visual Basic Editor. The behavior is now the same as it is in Microsoft Visual Basic.
RESOLUTION
If you have upgraded from an earlier product in which you used a MsgBox function that specified a Help file, you may need to add the vbMsgBoxHelpButton constant as demonstrated in the "More Information" section of this article.
REFERENCESFor additional information about the MsgBox Help example, click the article number below
to view the article in the Microsoft Knowledge Base:
236806 OFF2000: MsgBox Function Example Does Not Use vbMsgBoxHelpButton Constant
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbprb KB236808 |
---|
|