I want to make an array of labels in runtime. The captions of the labels are set at runtime.
This is what I have:
Dim ctrlArray(0 To 24) As Label
ctrlArray(0) = lblWeek1_Monday
ctrlArray(1) = lblWeek1_Tuesday
etc...
The second line gives an error: The object variable is not set.
What am I doing wrong here?