I'm trying to connect VBA to WEAP . but I have a problem with defining Scenarios of the WEAP model to VBA.

I tried the following codes:

-WEAP.Scenarios("Current Accounts").Activate

-WEAP.ActiveScenario = "Current Accounts"

-WEAP.ActiveScenario = WEAP.Scenarios("Current Accounts")

when running each of these codes I get the following error:

"WEAPApplication.Scenarios: Invalid Scenario: Current Accounts"

do you have any idea about fixing this error?

More Zahra Karimi Shavaki's questions See All
Similar questions and discussions