如何將 Excel 資料行數字轉換成依字母順序排列的字元

如何將 Excel 資料行數字轉換成依字母順序排列的字元

瀏覽:811
日期:2024-07-05
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 ......看更多