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
 
M

Mike Glen

Hi Pradeep,

On the msnews.microsoft.com server, try the microsoft.public.project.vba
newsgroup as you are more likely to get an answer there.

FAQs, companion products and other useful Project information can be seen at
this web address: http://www.mvps.org/project/

Hope this helps - please let us know how you get on:)

Mike Glen
MS Project MVP
 

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