I actually ended up going with another piece of code.
Private Sub cmdUpdate_Click()
Dim CurrentRow As Integer
Dim vFIND As Range
On Error Resume Next
With ActiveWorkbook.Sheets("EmployeeInfo")
Set vFIND = .Range("B:B").Find(txtID.Value, LookIn:=xlValues, LookAt:=xlWhole)
vFIND.Select
CurrentRow = ActiveCell.Row
Me.cboName.Value = ""
Range("c" & CurrentRow) = Me.cboContactType.Text
Range("d" & CurrentRow) = Me.cboSalutation.Text
Range("e" & CurrentRow) = Me.txtFirstname.Text
Range("f" & CurrentRow) = Me.txtSurname.Text
Range("g" & CurrentRow) = Me.txtJobTitle.Text
Range("h" & CurrentRow) = Me.txtCompany.Text
Range("i" & CurrentRow) = Me.txtStreetAddress.Text
Range("j" & CurrentRow) = Me.txtSuburb.Text
Range("k" & CurrentRow) = Me.cboState.Value
Range("l" & CurrentRow) = Me.txtPostcode.Text
Range("m" & CurrentRow) = Me.txtWorkPhone.Text
Range("n" & CurrentRow) = Me.txtMobile.Text
Range("o" & CurrentRow) = Me.txtEmail.Text
Range("p" & CurrentRow) = Me.txtStartDate.Text
Range("q" & CurrentRow) = Me.txtHourlyRate.Text
Range("r" & CurrentRow) = Me.txtComments.Text
MsgBox ("Details updated")
ActiveWorkbook.Save
End With
End Sub
Cheers,
Nunans
Bookmarks