PRB: MsgBox with Script Control Produces Run-Time Error 70 (184741)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
This article was previously published under Q184741 SYMPTOMS
When you run a script in an application that hosts the Microsoft Script
control, MsgBox causes the following error message to appear:
Run-time error #70:
Permission Denied
CAUSE
The AllowUI property of the control is FALSE.
RESOLUTION
Set the AllowUI property of the script control to TRUE either through code
at run time or through the property sheet at design time.
STATUS
This behavior is by design.
REFERENCES
For information about obtaining the Script control, please see the
following article in the Microsoft Knowledge Base:
184739
: INFO: Where to Obtain the Script Control
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by
Malcolm Stewart, Microsoft Corporation
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbCtrl kbGrpDSVB kbprb kbScript kbVBp KB184741 kbAudDeveloper |
---|
|