我正在尝试使用公式来获取字母表中的字母。
公式:
=Keytable(RANDOM,ROW())
功能:
Function KeyTable(seed As Long, position As Long) As String
Dim i As Long
Stop
Dim calpha(1 To 26) As String
Dim alpha(1 To 26) As String
For i = 1 To 26
alpha(i) = Chr(i + UPPER_CASE - 1)
Next i
For i = 1 To 26
calpha(i) = alpha(seed Mod 27 - i)
Next i
Stop
KeyTable = calpha(position)
End Function
结果:
#Value!
当我单步执行该功能时,它永远不会到达第二站。怎么了?