Hi i get this error message, when trying to run some code. 
When i click a button get an error message Argument Not optional on Call ConvertToLetter.
There are no other functions with the same name. Not sure what i am doing wrong.
Private Sub Command0_Click()
Dim icol As Integer
icol = 30
Call ConvertToLetter
End Sub
Function ConvertToLetter(icol As Integer) As String
Dim iAlpha As Integer
Dim iRemainder As Integer
iAlpha = Int(icol / 27)
iRemainder = icol - (iAlpha * 26)
If iAlpha > 0 Then
ConvertToLetter = Chr(iAlpha + 64)
End If
If iRemainder > 0 Then
ConvertToLetter = ConvertToLetter & Chr(iRemainder + 64)
End If
End Function
Thanks
 When i click a button get an error message Argument Not optional on Call ConvertToLetter.
There are no other functions with the same name. Not sure what i am doing wrong.
Private Sub Command0_Click()
Dim icol As Integer
icol = 30
Call ConvertToLetter
End Sub
Function ConvertToLetter(icol As Integer) As String
Dim iAlpha As Integer
Dim iRemainder As Integer
iAlpha = Int(icol / 27)
iRemainder = icol - (iAlpha * 26)
If iAlpha > 0 Then
ConvertToLetter = Chr(iAlpha + 64)
End If
If iRemainder > 0 Then
ConvertToLetter = ConvertToLetter & Chr(iRemainder + 64)
End If
End Function
Thanks
 
	 
 
		 
 
		 
 
		 
 
		