Author Topic: VBA Add-in  (Read 4805 times)

Angy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
VBA Add-in
« 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

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: VBA Add-in
« Reply #1 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?
The Sparx Team
[email protected]

Angy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: VBA Add-in
« Reply #2 on: September 05, 2004, 09:20:09 am »
In realty I missed a particular in the code..  :-[
Now all works!

Thanks!