0

I received this error even though I select the "Arena 16.0 Type Library".

enter image description here

Community
  • 1
  • 1
  • 1
    The code you show is written for early binding. So you need to [add the reference](https://learn.microsoft.com/en-us/office/vba/language/how-to/check-or-add-an-object-library-reference) to the Arena Library. – Storax Jan 19 '20 at 18:07

1 Answers1

0

Try this:

Dim oModel as Object
Set oModel = CreateObject("Arena.Application")
  • 1
    The OP woul better add the reference as the next error will probably occur at the line `Dim m as Arena.Model`. – Storax Jan 19 '20 at 18:05
  • How can I open the software and run a model after writing that code? –  Jan 21 '20 at 14:59