MS Project Addin BUG written visual basic on Task Change Event

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
 

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