Sub searchBoys()
'profile is the name being searched
Dim profile As String
Dim ws As Worksheet
profile = LCase(Sheet8.Range("searchName").Value)
For Each ws In ActiveWorkbook.Worksheets
If profile = Trim(LCase(ws.name)) Then
ws.Select
Exit Sub
End If
Next ws
End Sub
Trying to do a small little project where I create an excel page containing fun facts about each of my friends. From the main page, the user would search their name, (referenced as profile) and the active worksheet would switch to the one pertaining to them.