My user-defined formula is supposed to find the address of a cell that contains "TextToLookFor" in worksheet "Sheet"? Can you telll me what is wrong with it?
Function FindIt(TextToLookFor, Sheet) As String
Dim myCell As Range
myCell = Cells.Find(What:=TextToLookFor, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, MatchCase:=False, SearchFormat:=False).Activate
FindIt = myCell.Address(False, False)
End Function
Function FindIt(TextToLookFor, Sheet) As String
Dim myCell As Range
myCell = Cells.Find(What:=TextToLookFor, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, MatchCase:=False, SearchFormat:=False).Activate
FindIt = myCell.Address(False, False)
End Function