我如何获取单元格的列字母(需要使其通过Z列,例如AA,AB) [英] How can i get the Column letters of a cell (need to make it work past the Z column such as AA,AB)

查看:219
本文介绍了我如何获取单元格的列字母(需要使其通过Z列,例如AA,AB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
将列号转换为字母的VBA函数?

Possible Duplicate:
VBA function to convert column number to letter?

我想让Z列后面有列字母, 有很多技术可以在Z列之前获取它,但是在Z列之后似乎没有任何作用 有办法吗?

I want to have the column letters past the Z column, there are many techniques for getting it before Z column but after Z, nothing seems to work Is there a way to do so?

推荐答案

另一种方法:

Public Function ColumnLettersFromRange(rInput As Range) As String

    ColumnLettersFromRange = Split(rInput.Address, "$")(1)

End Function

这篇关于我如何获取单元格的列字母(需要使其通过Z列,例如AA,AB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆