S
Steved
Hello from Steved
The below macro Keeps highlighting the belowand will not
work please help.
pWords = Split(Range.Text, " ")
Sub Testing()
Dim pWords() As String
pWords = Split(Range.Text, " ")
For i = 0 To UBound(pWords)
If pWords(i) Like "[a-zA-Z]{1,}" Then
pStartWord = i
Exit For
End If
Next
Output = pWords(pStartWord)
For i = pStartWord + 1 To UBound(pWords)
Output = Output & " " & pWords(i)
Next
End Sub
The below macro Keeps highlighting the belowand will not
work please help.
pWords = Split(Range.Text, " ")
Sub Testing()
Dim pWords() As String
pWords = Split(Range.Text, " ")
For i = 0 To UBound(pWords)
If pWords(i) Like "[a-zA-Z]{1,}" Then
pStartWord = i
Exit For
End If
Next
Output = pWords(pStartWord)
For i = pStartWord + 1 To UBound(pWords)
Output = Output & " " & pWords(i)
Next
End Sub