XLL 插件的 DDEConnect() 连接到 Excel 时失败?
我在连接到 Excel 时遇到问题,有一个插件可以从数据库读取数据并尝试通过 DDE 填充 Excel 工作表,有时 DDEConnect 函数似乎会失败,错误号为 16390 - DMLERR_INVALIDPARAMETER DDEML 函数调用的参数无效。
更有趣的是,当按 F9(重新计算工作表中的所有公式)然后从宏运行时,它会更频繁地失败,该宏会遍历所有工作表并重新计算公式。
有人有使用 Excel 进行 DDE 的经验吗?
问候, 米卡
I have a problem with connecting to Excel, there's a plugin that reads from db and tries to fill excel sheet with data across DDE, and it seems to be failing sometimes on DDEConnect function with error number 16390 - DMLERR_INVALIDPARAMETER Invalid parameter to DDEML function call.
What is more interesting it is failing more often when pressing F9 (recalculates all formula in worksheet) then running from macro which goes through all worksheets and recalculates the formulae.
Anybody with experience of DDE with Excel?
Regards,
Mika
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题可能是当前线程尚未调用 DdeInitialize()
The problem might be that DdeInitialize() was not yet called for the current thread