Cheers Jeff,
I have added the additional coding to the rest of my requirements, however when I now try to use the cboReg for data input I get Run-Time Error '1004' an when I go into Debug it highlights this line:
Let txtMake.Value = Sheets("Vehicle List To Update").Cells(drow, 2).Value
This is the full code of what I have now:
Private Sub cboReg_Change()
Dim vreg As String, drow As Integer, c As Range
Let vreg = cboReg.Value
With Sheets("Vehicle List To Update").Range("a4:a100")
Set c = .Find(vreg, LookIn:=xlValues, lookat:=xlWhole)
If Not c Is Nothing Then
Let drow = c.Row
End If
End With
Let txtMake.Value = Sheets("Vehicle List To Update").Cells(drow, 2).Value
Let txtModel.Value = Sheets("Vehicle List To Update").Cells(drow, 3).Value
Let txtCC.Value = Sheets("Vehicle List To Update").Cells(drow, 4).Value
Let txtGVW.Value = Sheets("Vehicle List To Update").Cells(drow, 5).Value
Let cboVehicleType.Value = Sheets("Vehicle List To Update").Cells(drow, 6).Value
Let cboCover.Value = Sheets("Vehicle List To Update").Cells(drow, 7).Value
Let txtAdded.Value = Sheets("Vehicle List To Update").Cells(drow, 9).Text
Let txtDeleted.Value = Sheets("Vehicle List To Update").Cells(drow, 10).Text
Let txtDept.Value = Sheets("Vehicle List To Update").Cells(drow, 15).Value
Let txtLocation.Value = Sheets("Vehicle List To Update").Cells(drow, 16).Value
Let cboDriver.Value = Sheets("Vehicle List To Update").Cells(drow, 14).Value
Let txtCondition.Value = Sheets("Vehicle List To Update").Cells(drow, 15).Value
Let txtMileage.Value = Sheets("Vehicle List To Update").Cells(drow, 18).Value
Let txtRadio.Value = Sheets("Vehicle List To Update").Cells(drow, 20).Value
Let txtKeyNo.Value = Sheets("Vehicle List To Update").Cells(drow, 19).Value
Let txtTAX.Value = Sheets("Vehicle List To Update").Cells(drow, 12).Text
Let txtMOT.Value = Sheets("Vehicle List To Update").Cells(drow, 13).Text
End Sub
Thanks
Stuart
Bookmarks