Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使 dll COM 可见并使用 RegAsm 工具注册了 dll。在 excel 中,我为我的 .NET dll 添加对 TLB 文件的引用,然后在 excel VBA 中创建我的类的实例。
真正的问题是,当我发布新版本的 dll 时,我必须再次手动添加对新 dll 的引用,而这个 excel 应用程序将分发给许多用户,所以他们第一次必须手动添加对 TLB 文件的引用。
有没有办法从excel VBA自动引用TLB,或者可以在创建类型实例之前以编程方式加载?