I would like to make an array of the attorneys at my work and then add those names to several different combo boxes on different forms within a project. I figured most of it out but when I try to add the names to the combo box it is adding the index number instead of what the index represents. I have the following code in a module:
Public i as integer
Public Attorneys(79) as string
Sub AddAttorneys()
Attorneys(0) = "John Smith"
Attorneys(1) = "Bob Smith"
....etc.
End Sub
Then, in the initialize event of one of the userform I did the following:
For i = 0 to UBound(Attorneys)
cboAttorney.additem(i)
Next i
What am I missing? Thanks in advance.
Public i as integer
Public Attorneys(79) as string
Sub AddAttorneys()
Attorneys(0) = "John Smith"
Attorneys(1) = "Bob Smith"
....etc.
End Sub
Then, in the initialize event of one of the userform I did the following:
For i = 0 to UBound(Attorneys)
cboAttorney.additem(i)
Next i
What am I missing? Thanks in advance.