VB Code:
Dim i As Long, d As Long
Dim max_hk As Long
Dim CurrentHK As String
Dim sono_str As String
max_hk = UBound(hk) - 1
'fill the string with the entire array, with each item surrounded by character 0
sono_str = Chr(0) _
& Join(sono, Chr(0)) _
& Chr(0)
For i = 0 To max_hk
CurrentHK = Trim(hk(i))
If InStr(1, sono_str, Chr(0) & CurrentHK [i]& Chr(0)[/i]) Then
sAll = sAll & vbCrLf & CurrentHK & " ***PASSER***"
Else
sAll = sAll & vbCrLf & CurrentHK & " ***PASSER IKKE***"
End If
Next i
If HK is likely to be the shorter of the two values then the InStr could have the final Chr(0) removed to add more functionality. As it is the two must be the same, with that change they just need to start the same.