Microsoft KB Archive/136881

= PRJ4: OLE Automation Run-Time Error Message Contains Question Marks =

Article ID: 136881

Article Last Modified on 10/11/2006

-

APPLIES TO


 * Microsoft Project 4.1 Standard Edition

-



This article was previously published under Q136881



SYMPTOMS
When you run a Visual Basic program, or a Visual Basic, Applications Edition, macro that accesses Microsoft Project as an OLE Automation object, you may receive a Run-time error message that contains question mark characters instead of the correct error text.



CAUSE
This behavior occurs when your program or macro returns a Run-time error, such as "Run-time error '5':." For example, if you run the following macro in Microsoft Excel Sub Project_Task Dim x as Object Set x = GetObject("","MSProject.Application") x.FileNew x.Projects(1).Tasks.Add "T1", 10000 End Sub you receive the following error message:

Run-time error '5':

???????????

The correct text for the Run-time error '5': error message is the following:

Run-time error '5':

Invalid procedure call

The error message described above occurs because the value 10000 exceeds the maximum allowed value for the before argument.

If you receive the "Run-time error '7':" error message as the result of accessing Microsoft Project as an OLE Automation object, the error message contains the text "?4????" instead of the correct text "Out of memory."



STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
Additionally, when you receive one of the error messages that contains the question mark characters, when you click Help, you receive the following error messages

Cannot find the ???????????????.HLP file. Do you want to try to find this file yourself?

If you click NO, the following error message appears:

Cannot find the ???????????????.HLP file. Check to see that the file exists on your disk. If it doesn't, you need to reinstall it.

Additional query words: PRJ41 garbage unreadable

Keywords: kberrmsg KB136881

-

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

© Microsoft Corporation. All rights reserved.