M
Mark Durrenberger
In my MS Project Add-in
I have a class defined called clsMarksEventClass
the first line of the class is
Public WithEvents myApp As MSProject.Application
' the class implements the MS Project "onchange" event
In my regular module I delcare:
Public MarksEvents As New clsMarksEventClass
Later on I've got this line of code - this activates the on-change class
Set MarksEvents.myApp = MSProject.Application
This line works fine in Project 2002 but dies on project 2000 with the
runtime error message:
Invalid procedure call or argument.
The debugger says MarksEvents.myApp = Nothing and
MSProject.Application = 'Microsoft Project'
Any ideas?
Thanks,
Mark
--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________
The nicest thing about NOT planning is that failure
comes as a complete surprise and is not preceded by
a period of worry and depression.
- Sir John Harvey-Jones
I have a class defined called clsMarksEventClass
the first line of the class is
Public WithEvents myApp As MSProject.Application
' the class implements the MS Project "onchange" event
In my regular module I delcare:
Public MarksEvents As New clsMarksEventClass
Later on I've got this line of code - this activates the on-change class
Set MarksEvents.myApp = MSProject.Application
This line works fine in Project 2002 but dies on project 2000 with the
runtime error message:
Invalid procedure call or argument.
The debugger says MarksEvents.myApp = Nothing and
MSProject.Application = 'Microsoft Project'
Any ideas?
Thanks,
Mark
--
_________________________________________________________
Mark Durrenberger, PMP
Principal, Oak Associates, Inc, www.oakinc.com
"Advancing the Theory and Practice of Project Management"
________________________________________________________
The nicest thing about NOT planning is that failure
comes as a complete surprise and is not preceded by
a period of worry and depression.
- Sir John Harvey-Jones