Loading mpp file and getting Visual Basic error

M

Mai

When I open a mpp file and "enable macros", I get an
additional window with an error and pop-up window with a
title of "Microsoft Visual Basic". The pop-up
says "Compile error: Ambiguous name detected
Project_Open".

The additional window has a series of
"Private Sub Project_Open(ByVal pj As SProject.Project)
ThisProject.VBProject.Description =
ThisProject.VBProject.Description 'While saving your file
to Microsoft Project 98 format, Microsoft Project 2000
added this line to ensure that your VBA macros are loaded
properly.
End Sub"

I can closed the Visual Basic window. The file does load
in the Project 2002 window, and I can edit it. If I
select "disable macros" when I open the file, there is no
additional window or error.

I have downloaded the patch listed at this url.
"http://support.microsoft.com/default.aspx?scid=kb;en-
us;822211&Product=prj2002#appliesto"

I still get the error and extra window. Any ideas of
what else I can do to get rid of this?

Thank you.
 
J

Jack D.

Mai said:
When I open a mpp file and "enable macros", I get an
additional window with an error and pop-up window with a
title of "Microsoft Visual Basic". The pop-up
says "Compile error: Ambiguous name detected
Project_Open".

The additional window has a series of
"Private Sub Project_Open(ByVal pj As SProject.Project)
ThisProject.VBProject.Description =
ThisProject.VBProject.Description 'While saving your file
to Microsoft Project 98 format, Microsoft Project 2000
added this line to ensure that your VBA macros are loaded
properly.
End Sub"

I can closed the Visual Basic window. The file does load
in the Project 2002 window, and I can edit it. If I
select "disable macros" when I open the file, there is no
additional window or error.

I have downloaded the patch listed at this url.
"http://support.microsoft.com/default.aspx?scid=kb;en-
us;822211&Product=prj2002#appliesto"

I still get the error and extra window. Any ideas of
what else I can do to get rid of this?

Thank you.

Try deleting all that text and see if it works properly.

--
Please try to keep replies in this group. I do check e-mail, but only
infrequently. For Macros and other things check http://masamiki.com/project

-Jack Dahlgren, Project MVP
email: J -at- eM Vee Pee S dot COM


+++++++++++++++++++
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top