I have two words
I have ascertained the position of the hyphen in StringWords2(index2) how do i insert that hyphen into the same position in StringWords1(index)?
I have previously determined that removal of the hyphen would lead to a match of words.
but I want to insert and not remove it.
'traverse array and compare the words
For index = LBound(StringWords1()) To UBound(StringWords1())
For index2 = LBound(StringWords2()) To UBound(StringWords2())
If Replace(StringWords2(index2), "-", "") = StringWords1(index) Then
hypenPos = InStr(1, StringWords2(index2), "-", vbTextCompare)