📜  excel vba 列名到列号 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:55.743000             🧑  作者: Mango

代码示例1
' 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)