What changes need to be made to this coding (VBA in Office/EXCEL 32 bit) to work in Office/EXCEL 64 bit? I have been researching stackoverflow for answers.
Public Function FindInArray(a As Variant, tofind As Variant) As Integer
'Returns -1 if not found or position in array if found
Dim i As Integer
FindInArray = -1
If Not IsArrayEmpty(a) Then
For i = LBound(a) To UBound(a)
If a(i) = tofind Then
FindInArray = i
Exit For
End If
Next i
End If
End Function