小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:2 {0 Y K; x7 [" X t( ~: U
kanal:= DDEConnect("Excel", "Cost");
1 r) |0 G7 c% a+ y4 P- iDDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);, z3 D9 q* W2 j3 V3 U; b
DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);
- L, H& C9 h% i [5 Y9 d m% mDDEDisconnect(kanal);
) t+ D- ?. C+ b, _ [3 ~: n系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
8 M E. n5 w* m5 F1 l: c$ ]/ Z
; m: q' Y9 P7 M6 }请高手们不吝赐教~~小妹先谢过了~~~~ |