Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Angy on September 01, 2004, 01:36:27 am

Title: VBA Add-in
Post by: Angy on September 01, 2004, 01:36:27 am
Hello!

I'm using a Add-in in VBA and I have a problem:
in the function MunuClick I can't use some metods of the Repository, as Repository.GetReferenceList("Element")
because EA returns an Error "Type mismatch".

Could anyone help me?

Thanks
Title: Re: VBA Add-in
Post by: KP on September 02, 2004, 07:50:04 pm
Just tried this and it works:

       Dim ref As EA.Reference
       Set ref = Repository.GetReferenceList("Element")
       MsgBox "Element Count=" & str(ref.Count)

Are you doing anything different?
Title: Re: VBA Add-in
Post by: Angy on September 05, 2004, 09:20:09 am
In realty I missed a particular in the code..  :-[
Now all works!

Thanks!