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")
You can try this :
Set myTrigger = MegaEnv.GetMacro("myMacro")myTrigger.myCommand myParam1, myParam2with myMacro code is like :Sub myCommand (myParam1, myParam2) ...End Sub