Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Public Function letters(ByVal Source As Variant) As String
Dim mychar As Variant
Dim numberchars() As Byte
numberchars = StrConv(CStr(Source), vbFromUnicode)
For Each mychar In numberchars
letters = letters + Chr$(mychar - Asc("0") + Asc("A"))
Next
End Function[/blue]
[blue]Public Function numbers(ByVal Source As Variant) As String
Dim mychar As Variant
Dim numberchars() As Byte
numberchars = StrConv(CStr(Source), vbFromUnicode)
For Each mychar In numberchars
numbers = numbers + Chr$(mychar - Asc("A") + Asc("0"))
Next
End Function[/blue]
Sub num_to_letter()
Dim irow As Integer
Dim x As Variant
Dim x_ilog As Integer
Dim y As Integer
Dim letter$
irow = 1 'Starting Row
Do Until IsEmpty(Cells(irow, 1))
letter$ = ""
x = Cells(irow, 1)
x_ilog = Int(Log(x) / Log(10#)) + 1
For i = 1 To x_ilog
y = Int(x / (10 ^ (x_ilog - i)))
If i > 1 Then y = 10 * (y / 10 - Int(y / 10))
letter$ = letter$ & Chr$(65 + y)
Next i
Cells(irow, 2) = letter$
irow = irow + 1
Loop
End Sub