且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Excel VBA将处理程序添加到窗体中的每个复选框

更新时间: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.