I'm trying to transform a text into a Spongebob mocking style text, like this:
Hello World! = hElLo WoRlD.
I split the string into an array and converted the letters, but I cant only print them as an array.
How do I join the characters into a string?
Private Sub CommandButton1_Click()
Dim Word As String
Dim i As Integer
Dim Letters() As String
Word = Sheet1.Range("A1").Value
Letters = Split(StrConv(Word, 64), Chr(0))
For i = 0 To Len(Word) - 1 Step 2
Debug.Print StrConv(Letters(i), 1)
Debug.Print StrConv(Letters(i + 1), 2)
Next i
End Sub
Join?Result = Join(lower, "") Debug.Print Resultafter declaring lower as an array but it didnt worktemp = temp & StrConv(Letters(i), 1)