Private Sub FindName_Click()
Dim intColumn As Integer
Dim strBox As String
Dim rFind As Range
Dim intRow, i As Integer
intRow = ActiveCell.Row
strBox = InputBox("Enter the name you want to search for.")
If strBox = "" Then Exit Sub
For i = 1 To 900 Step 7
Set rFind = Range("d2").Offset(0, i)
Set rFind = rFind.Find(What:=strBox, LookIn:=xlValues, LookAt:=xlPart)
If Not rFind Is Nothing Then
rFind.Select
intColumn = ActiveCell.Column
Cells(intRow, intColumn).Select
End If
Next i
End Sub
Thank you Speshul
Got it to work now!
Bookmarks