Hello everyone,
I would like too generate a number of comboboxes at runtime and then pass them to a Sub, like this:
What is the correct syntax to use to pass the comboboxes collection to the Sub?
Thank you.
I would like too generate a number of comboboxes at runtime and then pass them to a Sub, like this:
Code:
For i = 0 to maxnumber
Dim cbo As New ComboBox()
cbo.Name = "cbo" & i
etc...
Next
etc...
Myroutine("collection of comboboxes")
Sub Myroutine(ByVal "collection of comboboxes")
...do something with the comboboxes...
End Sub
Thank you.
Comment