Parameter substitution: substitute the values in the passed array for %1, %2 etc in the string
The string value contining placeholders such as %1, %2, etc
Array of values to be inserted into the string
Dim arr(3) as String
arr(1) = "John"
arr(2) = "river"
arr(3) = "jump"
Debug.Print subst_array("Hi, %1, please %3 to the %2", arr)
prints: Hi, John, please jump to the river