小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
6 n7 U6 f0 b7 x" ikanal:= DDEConnect("Excel", "Cost");
9 Z4 i* ]$ V4 u# c* O& W5 kDDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);
[0 n2 \% N1 bDDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);
! H6 {) I1 j9 v) P: lDDEDisconnect(kanal);
7 {8 |: c4 y1 f& F1 g系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。4 Z1 ?. x# O: p
* g% H" g' t9 v请高手们不吝赐教~~小妹先谢过了~~~~ |