Hi
I could really do with some help! I've created a userform in Excel 2013 and it was running beautifully. I sent it to another colleague for testing on their PC on Excel 2010and I am having lots of problems 
When I try to run the following bit of code I keep getting the Compile error - object required and it highlights patientrec. I'm new to VBA and really can't work out why this works on my PC but not my colleagues.
I'd be so grateful for any help - thank you!!
Private Sub CBUpdateRecord_Click()
Dim answer As Integer
answer = MsgBox("Are you sure you want to update the existing patient record?", vbYesNo + vbQuestion, "Empty Sheet")
If answer = vbYes Then
With Sheets("Data")
Set patientrec = .Range("b:b").Find(What:=TextPatientID.Value, LookIn:=xlValues)
End With
Bookmarks