based this old code i need to find in array from a part of element array...
but difficult to arrange, other way is welcomed!
Option Explicit
Dim MIO_Array() As Variant
Dim ELEMENTO As String
Sub FIND_IN_ARRAY()
MIO_Array = Array("Paolo", "Giovanni", "Sal")
ELEMENTO = "Sal"
If InStr(Join(MIO_Array), ELEMENTO) > 0 Then
Stop
End If
End Sub
in my case ELEMENTO is Sa, or i can have ELEMENTO is Giov
i need to retrieve Giovanni, based Giov... eccc
but difficult to arrange, other way is welcomed!
Option Explicit
Dim MIO_Array() As Variant
Dim ELEMENTO As String
Sub FIND_IN_ARRAY()
MIO_Array = Array("Paolo", "Giovanni", "Sal")
ELEMENTO = "Sal"
If InStr(Join(MIO_Array), ELEMENTO) > 0 Then
Stop
End If
End Sub
in my case ELEMENTO is Sa, or i can have ELEMENTO is Giov
i need to retrieve Giovanni, based Giov... eccc