Articles → AUTOMATION ANYWHERE → Pass parameters in VBA file using automation anywhere and return a value
Pass parameters in VBA file using automation
anywhere and return a value
VBA file
' Input parameters
MsgBox WScript.Arguments.Item(0)
MsgBox WScript.Arguments.Item(1)
' returning value
WScript.StdOut.WriteLine WScript.Arguments.Item(0) & WScript.Arguments.Item(1)
Automation anywhere code
Click to Enlarge
Click to Enlarge
Output
Click to Enlarge
Click to Enlarge
Click to Enlarge