VBA中的多线程 [英] Multi-threading in VBA

查看:545
本文介绍了VBA中的多线程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道如何让VBA运行多个线程?我正在使用Excel。

解决方案

无法使用VBA本机。 VBA建在一个单线公寓内。获取多个线程的唯一方法是在具有COM接口的VBA中创建一个DLL,并从VBA调用它。



INFO:OLE线程模型的描述和工作


Does anybody here know how to get VBA to run multiple threads? I am using Excel.

解决方案

Can't be done natively with VBA. VBA is built in a single-threaded apartment. The only way to get multiple threads is to build a DLL in something other than VBA that has a COM interface and call it from VBA.

INFO: Descriptions and Workings of OLE Threading Models

这篇关于VBA中的多线程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆