tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
If I want to pass ONE argument to a SubRoutine, I can do this:
What if SomeSub requires TWO arguments? How can I define an array, that allows more than ONE argument to be passed?
Thanks
Code:
Dim MyArray() as Variant
MyArray() = Array("Apples", "Oranges")
Dim i As Integer
For i = LBound(MyArray(), 1) To UBound(MyArray(), 1)
Call SomeSub(Arg:=i)
Next i
What if SomeSub requires TWO arguments? How can I define an array, that allows more than ONE argument to be passed?
Thanks
Last edited: