I tend to populate combo boxes with loops, which I know can be inefficient.
An example would be this:
For X = 1 To 31
Me.Example_Combo.AddItem Format(X, "00")
Next X
I also add ranges from a worksheet, such as:
For X = 3 To LastRow
Me.Example_Combo.AddItem Data.Cells(X, 1).Value
Next X
I have a feeling I could use arrays to speed things up, but I have searched and cannot find a good answer. Can anyone help me on this please?
Many thanks,
James.
An example would be this:
For X = 1 To 31
Me.Example_Combo.AddItem Format(X, "00")
Next X
I also add ranges from a worksheet, such as:
For X = 3 To LastRow
Me.Example_Combo.AddItem Data.Cells(X, 1).Value
Next X
I have a feeling I could use arrays to speed things up, but I have searched and cannot find a good answer. Can anyone help me on this please?
Many thanks,
James.