求助窗口按钮一段代码,实现:批量隐藏 列名含"绿色”且列名不含“灰色”2个字的所有列
如批量隐藏这3列(表有超过50个列名含绿色2字)
[此贴子已经被作者于2024/8/4 22:35:10编辑过]
http://www.foxtable.com/webhelp/topics/0561.htm
For Each cl As Col In Tables("表A").Cols
if cl.Name.contains("绿色") andalso cl.Name.contains("灰色") =false
endif
Next