Guru Help needed - offset cell problem
Posted by benny the boy on December 20, 2001 12:48 AM
Could someone help me with the following problem? When the following Find code runs, why will it only copy the first offset value and not any others? I've tried loads of things and nothing's worked. It's really annoying me now. Thanks
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
With Worksheets("Carcus_Data").Range("a1:a6000")
Set c = .Find(TextBox1.Value, LookIn:=xlValues, LookAt:= _
xlWhole)
If Not c Is Nothing Then
TextBox2.Value = c.Offset(0, 1).Value
TextBox3.Value = c.Offset(0, 2).Value
TextBox4.Value = c.Offset(0, 2).Value
Do
firstAddress = c.Address
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> firstAddress
End If
End With
End Sub