如何通过DDE获得Excel的数据
编号:QA003022
建立日期: 2000年6月4日 最后修改日期:2000年6月4日
所属类别:
lwh:
操作系统: NT4.0
编程工具: VB6.0
问题: How communication VB with DDE,I know Excel98 can get data from DDE, i can do it. but i don't know how VB6 get data from DDE, could you pls give me some tips ?
水平: 刚入门
回答:
启动Excel,在Sheet1的R1C1中输入“aaa”。在VB的Form上放置一个Label,然后设置Label1的LinkTopic为“Excel|Sheet1”,LinkItem为“R1C1”。设置LinkMode为Automatic,这时你可以看到Label的内容为“aaa”。
相关问题:
QA002930 "提示"DDE 初始化时无外部程序响应""
此问题由李海回答。
| |
|
|
| |
|
|