📅  最后修改于: 2022-03-11 14:51:55.743000             🧑  作者: Mango
' Column name to column number
ColName = "A"
Debug.Print Range(ColName & 1).Column ' 1
' Column number to column name
ColNb = 1
Debug.Print Split(Cells(, ColNb).Address, "$")(1)