【发布时间】:2016-12-16 14:29:55
【问题描述】:
对不起,我的语言不是母语。
所以这里可能有问题。
有一个工作簿,里面有大约 30 张工作表和数据。我需要根据工作表的名称将数据转换为某种格式。我为每种工作良好的格式创建了一个 marco,并应用于所有选定的工作表。 我的想法是在检查工作表名称并格式化数据时创建一个调用三个格式宏之一的宏。类似的东西
If sheet.name = "111, 112, 113..." then 'if it fit the name do the format-1
call "Module_name_1"
Else if sheet.name = "222, 223, 224..." then 'if it fit the name do the format-2
call "Module_name_2"
Else sheet.name = "333, 334, 335..." then 'if it fit the name do the format-3
call "Module_name_3"
无论如何感谢您的宝贵时间 =)
【问题讨论】: