小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
/ \7 L2 b1 h( K Z! i% E0 Lkanal:= DDEConnect("Excel", "Cost");+ \1 |% y) w* o3 Y& G' V
DDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);1 E, R5 G+ S* U/ A0 Z% X! N4 `. c! ]
DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);1 y7 ?0 L1 T( ~! }* i
DDEDisconnect(kanal);9 F7 J( e9 V# y( u7 g" {5 a+ |
系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
) i X' w( ]" D/ k! O# |
. D) t( K1 A( E* i7 H请高手们不吝赐教~~小妹先谢过了~~~~ |