小编Fir*_*017的帖子

Find column name of active cell within ListObject in Excel

I have a table defined in Excel as a ListObject:

在此输入图像描述

In VbA, I can access rows and columns using ListObject("table1").ListRows or ListObject("table1").ListColumns

In one of my subs, I wan't to know the active cell's column name. And because the columns could be moved around, I want this to be dynamic.

For example, in the previous image, let's say I clicked on a cell of the third column. I'd like to have a function that tells me the column name associated …

excel vba

1
推荐指数
1
解决办法
4092
查看次数

标签 统计

excel ×1

vba ×1