我的电脑上安装了一个程序(Windows 7 服务器虚拟机) 它将数据导出到 dde excel。 导出有很多问题,因为 dde 链接的某些部分有时无法工作等等。
我见过possible solution这表明也许 dde 链接应该在每次运行之前关闭
Application.DDETerminateAll
或
For i = 1 To 1000
Application.DDETerminate (i) ' Closes all DDE links whose channels might be open
Next i
我正在寻找解决方案,并认为可能是 dde 设置 可以通过 Excel 2010 或 Windows 注册表设置进行修改以解决此问题。
最佳答案
DDE 早已被弃用。
在 Google 上,您会发现许多有关 DDE 无法在 Windows 7 上运行的问题。
建议的解决方案包括:
- 禁用 UAC。
在接收程序的消息过滤器中注册DDE消息
ChangeWindowMessageFilter(WM_DDE_FIRST, MSGFLT_ADD); ... ChangeWindowMessageFilter(WM_DDE_LAST, MSGFLT_ADD);
- 提升发送程序的权限。
看看其中是否有适合您的。
关于excel - dde excel 2010 链接不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11864305/