A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
I don't see any userform or code in the workbook you linked to. Have a look at this version of your workbook on my SkyDrive, it's call book1 mike.xlsm.
It has the code to populate a combox on the userform I've added and add the manager name to a text box.
Thanks Mike this worked upto a point, The combo box populated ok, when selecting the entry for the combo box it didn't seem to want to put the contents of the cell for the second part, ie areas managers name, into the text box in the user form I tried putting the second part under a procedure section for the combo box change
Any suggestions?
Colin
Hi,
I don't understand that. The code I put in the workbook is below and for me when the userform initialises the combobox is populated and when I make a selection in the combobox the manager name is populated into the textbox on the userform.
Did you alter the workbook I created?
Private Sub ComboBox1_Change()
Dim c As Range
With Sheets("sheet1").Range("B5:K5")
Set c = .Find(ComboBox1.Text, LookIn:=xlValues, LookAt:=xlWhole)
End With
TextBox1.Text = c.Offset(4).Value
End Sub
Private Sub UserForm_Initialize()
With Sheets("Sheet1")
For x = 2 To 11
ComboBox1.AddItem .Cells(5, x).Value
Next
End With
End Sub