Forum Discussion
hantrung_truong
13 years agoOccasional Contributor
1 2 3 4 5 6 7 8 9 10 | ...RunModel("F","D","U", "Aliases.Sys.scenarioA.Toolbar")...Sub RunModel(key1,key2,key3,ObjectName) Set obj = Eval(ObjectName) Call Run3Key(key1,key2,key3) If Not obj.Exists Then Runner.Halt("Run " & ObjectName & " Failed...") End IfEnd Sub |
Hi all,
I have the same question and the above scripts can solve the problem. However, I want to have the parameter as an object instead of string "Aliases.Sys.scenarioA.Toolbar".
But I couldn't find any solution for it. Does anyone can help with this?
Thanks in advance
Trung