Using VBA i have created a Userform with various Textboxes, Comboboxes & Listboxes. I currently set it so that once you hit the Submit button (Commandbutton1
), the various boxes contents fill a selected cell on my sheet.
Private Sub CommandButton1_Click()
Sheets("Sheet2").Range("D4") = TextBox1.Text
Sheet2.Cells(5, 4) = ComboBox2.Text
Sheet2.Cells(6, 4) = ComboBox1.Text
Sheet2.Cells(7, 4) = TextBox2.Text
Sheet2.Cells(8, 4) = TextBox4.Text
UserForm1.Hide
End Sub
I also want the contents of my multiselect Listbox to do the same for cells (9, 4) - (15, 4) for example. How can i do this? The options on this multi select list box range from Insight, Barracuda, Siena, Visio, Project.