Microsoft KB Archive/321366

= PRJ2002: Error Message When You Add the MS Project Grid Control (Mspjgrid) to a UserForm in the Visual Basic Editor =

Article ID: 321366

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Project 2002 Standard Edition

-



This article was previously published under Q321366



SYMPTOMS
When you try to add an MS Project Grid Control (Mspjgrid) to a UserForm in the Visual Basic Editor, you may experience one of the following behaviors:  You receive an error message similar to one of the following:

System Error &H80004005 (-2147467259). Unspecified error.

-or-

Microsoft Visual Basic element not found.

-or-

 You receive a Dr. Watson error, and then Microsoft Project quits unexpectedly.



CAUSE
This behavior occurs because the Microsoft Project Grid Controls (Pjgrid.ocx and Pjgrid2.ocx) can be hosted only in Microsoft Internet Explorer and cannot be used directly in a Visual Basic environment. These controls can only be used in Web pages.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
For more information about how to create and add controls to a UserForm, press ALT+F11 to open the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type userform in the Office Assistant or the Answer Wizard, and then click Search.

Keywords: kbbug kbnofix KB321366

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.