B
bryan
I curently have been using combo boxes in userforms for users to select one
item from a list. What I also want to do is supply a list of endorsement
forms and allow them the ability to select multiple forms to be included with
the form.
Can I use this same code and use listbox
or do I need to have a combo box loaded with the selections and an OK button
to load them to a listbox?
And then another OK button when complete?
If this then how do I get the values of the listbox?
Here is code I use for combobox:
'to call userform
Set UF = New UserForm1
UF.Show
strrec = UF.ComboBox1.Text
Set UF = Nothing
End If
'userform
Sub UserForm_Initialize()
ComboBox1.AddItem ("80%")
ComboBox1.AddItem ("100%")
ComboBox1.ListIndex = 0
End Sub
Sub CommandButton1_Click()
Me.Hide
End Sub
I appreciate the help,
Bryan
item from a list. What I also want to do is supply a list of endorsement
forms and allow them the ability to select multiple forms to be included with
the form.
Can I use this same code and use listbox
or do I need to have a combo box loaded with the selections and an OK button
to load them to a listbox?
And then another OK button when complete?
If this then how do I get the values of the listbox?
Here is code I use for combobox:
'to call userform
Set UF = New UserForm1
UF.Show
strrec = UF.ComboBox1.Text
Set UF = Nothing
End If
'userform
Sub UserForm_Initialize()
ComboBox1.AddItem ("80%")
ComboBox1.AddItem ("100%")
ComboBox1.ListIndex = 0
End Sub
Sub CommandButton1_Click()
Me.Hide
End Sub
I appreciate the help,
Bryan