I want to run a loop that will call a user-defined function which has the exact same name as the element in an array. I have defined 4 different functions by the names "India", "UK", "USA", and "Japan".
Countries = Array(India, UK, USA, Japan)
For i = 0 To UBound(Countries)
'{call the function named "India" when i = 0}
'{call the function named "UK" when i = 1}
'{call the function named "USA" when i = 2}
'{call the function named "Japan" when i = 3}
Next i
Can someone tell me how to achieve this? Please excuse me if the code formatting is incorrect. Thank you.