04-11-2015 01:56 PM
Dear Community,
I am trying to call a Macro from API.
I tried using the below but didn't succeed. Any advise?
mMacros = mI.MyRoot.GetCollection("Macro") oMacro = mMacros.Item("AutomateMacroExecute") oMacro.CallMethod("Execute")
Thank You
Mostafa
Solved! Go to Solution.
05-11-2015 05:20 PM
Hi Mostafa,
You can try this :
Set myTrigger = MegaEnv.GetMacro("myMacro")
myTrigger.myCommand myParam1, myParam2
with myMacro code is like :
Sub myCommand (myParam1, myParam2)
...
End Sub
Regards
Yannick