ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
查看: 229|回复: 8

[求助] 求助,在原程序模块1、模块2中修改达到符合运算分析要求

[复制链接]

TA的精华主题

TA的得分主题

发表于 2024-10-14 13:48 | 显示全部楼层 |阅读模式

1、在模块1、模块2中有一段程序:elements = Split("AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,MM,AN,AO", ","))
2、请求能在原有英文元素:AA~AO 15位 扩展添加至 AA~AWJ  1258位,十分谢谢!
3、附件以上传


模块1程序 图

模块1程序 图

模块2程序 图

模块2程序 图

SA1 转换.zip

885.2 KB, 下载次数: 6

TA的精华主题

TA的得分主题

发表于 2024-10-14 16:51 | 显示全部楼层

TA的精华主题

TA的得分主题

发表于 2024-10-14 16:53 | 显示全部楼层
AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,BH,BI,BJ,BK,BL,BM,BN,BO,BP,BQ,BR,BS,BT,BU,BV,BW,BX,BY,BZ,CA,CB,CC,CD,CE,CF,CG,CH,CI,CJ,CK,CL,CM,CN,CO,CP,CQ,CR,CS,CT,CU,CV,CW,CX,CY,CZ,DA,DB,DC,DD,DE,DF,DG,DH,DI,DJ,DK,DL,DM,DN,DO,DP,DQ,DR,DS,DT,DU,DV,DW,DX,DY,DZ,EA,EB,EC,ED,EE,EF,EG,EH,EI,EJ,EK,EL,EM,EN,EO,EP,EQ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G,AWH,AWI,AWJ

TA的精华主题

TA的得分主题

 楼主| 发表于 2024-10-15 08:38 来自手机 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
蓝桥玄霜 发表于 2024-10-14 16:51
扩展的例子:

您好!
请问“扩展程序”在那一阶段插入?
谢谢

TA的精华主题

TA的得分主题

 楼主| 发表于 2024-10-15 08:46 来自手机 | 显示全部楼层
yynrzwh 发表于 2024-10-14 16:53
AA,AB,AC,AD,AE,AF,AG,AH,AI,AJ,AK,AL,AM,AN,AO,AP,AQ,AR,AS,AT,AU,AV,AW,AX,AY,AZ,BA,BB,BC,BD,BE,BF,BG,B ...

编写“所有元素”,在过程中容易出现变故,
不方便检查容易导致错误判断

TA的精华主题

TA的得分主题

发表于 2024-10-15 09:30 | 显示全部楼层
把你的elements=split("AA,AB,AC,,,,,",",")
替换为:dim elements(1257)
for i=0 to 1257
elements(i)=sz2L(i+27)
next
另外自定义函数sz2L复制到模块中。

TA的精华主题

TA的得分主题

 楼主| 发表于 2024-10-19 20:07 | 显示全部楼层
蓝桥玄霜 发表于 2024-10-15 09:30
把你的elements=split("AA,AB,AC,,,,,",",")
替换为:dim elements(1257)
for i=0 to 1257

您好!
elements=split("AA,AB,AC,,,,,",","),中"AA,AB,AC~AWJ。 (即Excel中的实际列号,而不是数字)
其”AA“值为字符串,代表开始列的列名
其 "AWJ"值为字符串,代表结束列的列名

TA的精华主题

TA的得分主题

发表于 2024-10-20 16:06 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
数字转换为字符串的自定义函数给你了。

TA的精华主题

TA的得分主题

 楼主| 发表于 2024-10-20 22:16 来自手机 | 显示全部楼层
蓝桥玄霜 发表于 2024-10-20 16:06
数字转换为字符串的自定义函数给你了。

好的,我调试调试看看,谢谢
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2024-11-19 13:29 , Processed in 0.040698 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表