没有合适的资源?快使用搜索试试~ 我知道了~
excel列数转换为列名
![star](https://csdnimg.cn/release/downloadcmsfe/public/img/star.98a08eaa.png)
温馨提示
![preview](https://dl-preview.csdnimg.cn/txt_preview/4531754/4531754_thumbnail_1.jpg?x-oss-process=style/thumbnail)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
2页
excel列数转换为列名,使用时将txt后缀改为vbs
资源推荐
资源详情
资源评论
![text/plain](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![text/plain](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![xlsm](https://img-home.csdnimg.cn/images/20210720083646.png)
'可以转换6个Z以内的数据
Dim n(26)
For i=1 To 26
n(i)=Chr(65-1+i)
Next
Function mods(a)
If a Mod 26 =0 Then
mods="Z"
Else mods=n(a Mod 26)
End if
End Function
Function getcolname(b)
If b<=26 Then
getcolname=mods(b)
End If
If b>26 Then
'If b Mod 26 = 0 And b\26 <=27 Then
If b Mod 26 = 0 Then
getcolname=getcolname(b\26-1)&mods(b)
else
getcolname=getcolname(b\26)&mods(b)
End if
End If
End Function
Dim n(26)
For i=1 To 26
n(i)=Chr(65-1+i)
Next
Function mods(a)
If a Mod 26 =0 Then
mods="Z"
Else mods=n(a Mod 26)
End if
End Function
Function getcolname(b)
If b<=26 Then
getcolname=mods(b)
End If
If b>26 Then
'If b Mod 26 = 0 And b\26 <=27 Then
If b Mod 26 = 0 Then
getcolname=getcolname(b\26-1)&mods(b)
else
getcolname=getcolname(b\26)&mods(b)
End if
End If
End Function
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
- ark2015-03-11谢谢分享,活学活用excel。
- viplijunhua2013-06-27不错,很好用,多谢
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
finow159
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)