P
Pradeep Mishra
Hi,
While Working with an add-in written for Microsoft Project 2000 SP-1,
i came across a strange behaviour of COM plug-in written for MSProject
in Visual Basic 6.0.
If i write code in ProjectBeforeTaskChange() event of MSProject then
Pasting an Icon in Notes throws an runtime Error.
runtime error 458 "Variable uses an Automation type not supported in
Visual Basic"
the sample to produce the bug.
Option Explicit
Public WithEvents MSProjectApp As MSProject.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object,
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal
AddInInst As Object, custom() As Variant)
Set MSProjectApp = Application
End Sub
Private Sub MSProjectApp_ProjectBeforeTaskChange(ByVal tsk As
MSProject.Task, ByVal Field As MSProject.PjField, ByVal NewVal As
Variant, Cancel As Boolean)
MsgBox "Before Task Change"
End Sub
I Need Help.
Regards,
Pradeep Mishra
While Working with an add-in written for Microsoft Project 2000 SP-1,
i came across a strange behaviour of COM plug-in written for MSProject
in Visual Basic 6.0.
If i write code in ProjectBeforeTaskChange() event of MSProject then
Pasting an Icon in Notes throws an runtime Error.
runtime error 458 "Variable uses an Automation type not supported in
Visual Basic"
the sample to produce the bug.
Option Explicit
Public WithEvents MSProjectApp As MSProject.Application
Private Sub AddinInstance_OnConnection(ByVal Application As Object,
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, ByVal
AddInInst As Object, custom() As Variant)
Set MSProjectApp = Application
End Sub
Private Sub MSProjectApp_ProjectBeforeTaskChange(ByVal tsk As
MSProject.Task, ByVal Field As MSProject.PjField, ByVal NewVal As
Variant, Cancel As Boolean)
MsgBox "Before Task Change"
End Sub
I Need Help.
Regards,
Pradeep Mishra