Afternoon all,
As a VBA beginner, I'm currently having an issue with my user form where the combo box isn't populating with the options "I Shares" and "S Shares".
I suspect that it may be an issue due to the start of the code in terms of the userform_initialize? If I'm being honest I'm not familiar with what this even does. However, I have tried a similar code in another dummy spreadsheet where I've added fruits into a combo box and this has seemed to work?
I would be very grateful if someone could point me in the right direction!
The below is just a section of the code: [the userform is called ISShareClassForm and the combo box is called ISShareClassComboBox]
Private Sub ISShareClassForm_Initialize()
'Empty IShareClassComboBox
ISShareClassComboBox.Clear
'Fill ISShareClassComboBox
With ISShareClassComboBox
.AddItem "I Shares"
.AddItem "S Shares"
End With
And this is the code (that worked) whcich I have used as a dummy with fruits:
Private Sub UserForm_Initialize()
With ComboBox1
.AddItem "Banana"
.AddItem "Orange"
.AddItem "Pear"
.AddItem "Grapes"
End With
End Sub
Much appreciated,
updog
As a VBA beginner, I'm currently having an issue with my user form where the combo box isn't populating with the options "I Shares" and "S Shares".
I suspect that it may be an issue due to the start of the code in terms of the userform_initialize? If I'm being honest I'm not familiar with what this even does. However, I have tried a similar code in another dummy spreadsheet where I've added fruits into a combo box and this has seemed to work?
I would be very grateful if someone could point me in the right direction!
The below is just a section of the code: [the userform is called ISShareClassForm and the combo box is called ISShareClassComboBox]
Private Sub ISShareClassForm_Initialize()
'Empty IShareClassComboBox
ISShareClassComboBox.Clear
'Fill ISShareClassComboBox
With ISShareClassComboBox
.AddItem "I Shares"
.AddItem "S Shares"
End With
And this is the code (that worked) whcich I have used as a dummy with fruits:
Private Sub UserForm_Initialize()
With ComboBox1
.AddItem "Banana"
.AddItem "Orange"
.AddItem "Pear"
.AddItem "Grapes"
End With
End Sub
Much appreciated,
updog