Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started 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
-
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?
-
In realty I missed a particular in the code.. :-[
Now all works!
Thanks!