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



The information in this article applies to:

  • Microsoft Project Standard 2002

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.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbbug kbnofix KB321366