I concur wholehearted MD. I did stuff up.
Now as to the second part, is it possible to set a target based upon to criteria, that is initially from the value selected in the combobox and then based on the last entry ( value based on a date) ?
[vba]
Private Sub cboEmployee_Click()
Dim Tgt As Range
Set Tgt = Sheets(1).Columns 1).Find (What:=cboEmployee.Text, After:=Tgt.Offset(, 0), ActiveSheet.Columns(2).Find (What:=LastDate, LookAt :=xlWhole)
Me.txtStartDate.Value = Tgt.Offset(, 1)
Me.txtType = Tgt.Offset(, 2)
Me.txtCourse1 = Tgt.Offset(, 4)
Me.txtCourse2 = Tgt.Offset(, 5)
Me.txtCourse3 = Tgt.Offset(, 6)
End Sub
[/vba]
Bob , kindly offerred the following;
[vba]
ary=Activesheet.Evaluate("Index((A2:A9=""" & Me.cboCombobox1.Value _
& """
* (ROW(A2:A9)),0)"
[/vba] ...which I didn't understand. I can only assume that ary is short for Array, that is calls for an evaluation of an Index based on the range A2: A9, and in doing so is looking for the value selected from the combobox. Does it dispay the findings in a msgbox?
BTW, Ill fix the workbook up and repost it. So you'll understand what I'm rambling on about