VB Code:
Option Explicit
Private strFirstCell As String
Private Sub CommandButton1_Click()
Static c
Sheets("Sheet1").Select
If CommandButton1.Caption = "Find" Then
Range("A1").Select
strFirstCell = ""
Set c = Cells.Find(What:=TextBox1.Text, LookIn:=xlValues, LookAt:=xlPart, _
MatchCase:=False)
If Not c Is Nothing Then
c.Select
strFirstCell = ActiveCell.Address
TextBox2.Text = c.Value
CommandButton1.Caption = "Find Next"
End If
Else
Set c = Cells.FindNext(After:=ActiveCell)
If Not c Is Nothing Then
c.Select
If ActiveCell.Address = strFirstCell Then
MsgBox "All partial strings found."
CommandButton1.Caption = "Find"
Else
TextBox2.Text = c.Value
End If
End If
End If
End Sub
Hope this helps.