Function to convert column number to letter?

后端 未结 28 1918
灰色年华
灰色年华 2020-11-22 07:04

Does anyone have an Excel VBA function which can return the column letter(s) from a number?

For example, entering 100 should return CV.

28条回答
  •  借酒劲吻你
    2020-11-22 07:42

    what about just converting to the ascii number and using Chr() to convert back to a letter?

    col_letter = Chr(Selection.Column + 96)

提交回复
热议问题