Retrieve required strings
Private Sub CommandButton1_Click()
Dim i As Integer
Dim word As String
word = Range("A1").Value
For i = 1 To Len(word)
If Mid(word, i, 1) = "a" Or _
Mid(word, i, 1) = "u" Or _
Mid(word, i, 1) = "n" Then
result = result & Mid(word, i, 1)
Range("B1").Value = result
End If
Next
End Sub
Find the matched cell and rearrange the data in a cell