Developing a function which separates the string and i want to display the first value after = that is 16 instead of entire separated string.
I hope to get some help thanks.
Sub Split()
Dim arr() As String
arr = Split("KeyNo = ,16,17,18", ",")
Dim name As Variant
For Each name In arr
Debug.Print name
Next
End Sub
and this one also
Sub Split2()
Dim arr() As String
arr = Split("KeyNo = 16,17,18", ",")
Dim name As Variant
For Each name In arr
Debug.Print name
Next
End Sub
