Private Sub CommandButton2_Click()
Dim i As Integer, a As Integer, MyNumber As Integer
For i = 7 To 50
Dim myarray(9) As String
myarray(0) = " Zero "
myarray(1) = "One"
myarray(2) = "Two"
myarray(3) = "Three"
myarray(4) = "Four"
myarray(5) = "Five"
myarray(6) = "Six"
myarray(7) = "Seven"
myarray(8) = "Eight"
myarray(9) = "Nine"
For a = 1 To Len(Range("B" & i).Value)
tmp = myarray(Mid(Range("B" & i), a, 1))
Range("C" & i) = Range("C" & i) & " " & tmp
Next a
Next i
End Sub
UserFormya :Private Sub TextBox1_Change()
If TextBox1 <> "" Then
TextBox2 = Len(TextBox1)
Dim myarray(9) As String
myarray(0) = " Zero "
myarray(1) = "One"
myarray(2) = "Two"
myarray(3) = "Three"
myarray(4) = "Four"
myarray(5) = "Five"
myarray(6) = "Six"
myarray(7) = "Seven"
myarray(8) = "Eight"
myarray(9) = "Nine"
Dim i As Integer, tmp As String
For i = 1 To Len(TextBox1)
tmp = tmp & " " & myarray(Mid(TextBox1, i, 1))
Next
TextBox3 = tmp
End If
End Sub
Dim i As Integer, a As Integer, MyNumber As Integer
For i = 7 To 50
Dim myarray(9) As String
myarray(0) = " Zero "
myarray(1) = "One"
myarray(2) = "Two"
myarray(3) = "Three"
myarray(4) = "Four"
myarray(5) = "Five"
myarray(6) = "Six"
myarray(7) = "Seven"
myarray(8) = "Eight"
myarray(9) = "Nine"
For a = 1 To Len(Range("B" & i).Value)
tmp = myarray(Mid(Range("B" & i), a, 1))
Range("C" & i) = Range("C" & i) & " " & tmp
Next a
Next i
End Sub
UserFormya :Private Sub TextBox1_Change()
If TextBox1 <> "" Then
TextBox2 = Len(TextBox1)
Dim myarray(9) As String
myarray(0) = " Zero "
myarray(1) = "One"
myarray(2) = "Two"
myarray(3) = "Three"
myarray(4) = "Four"
myarray(5) = "Five"
myarray(6) = "Six"
myarray(7) = "Seven"
myarray(8) = "Eight"
myarray(9) = "Nine"
Dim i As Integer, tmp As String
For i = 1 To Len(TextBox1)
tmp = tmp & " " & myarray(Mid(TextBox1, i, 1))
Next
TextBox3 = tmp
End If
End Sub