更新时间:2023-12-06 11:49:04
colCBHandlers 就会超出范围。
您需要将该集合声明为全局集合(在模块级别),这样它在创建和填充后就不会丢失。
You need to declare that collection as a global (at the module level) so it doesn't get lost once it has been created and populated.
Excel VBA将处理程序添加到窗体中的每个复选框