| 小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:2 L6 B8 `* b* s' [  c; ~0 d: m- X2 _ kanal:= DDEConnect("Excel", "Cost");& M8 w9 c( _4 a' u- Z
 DDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);
 F, ^9 W! ^% Q" VDDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);5 d# M9 T' @1 I6 L4 M3 L
 DDEDisconnect(kanal);
 . w" F- L, D; P8 l5 p: X系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
 5 h; _( u  R0 u# P' D1 n" s% i7 i2 f' h4 m
 请高手们不吝赐教~~小妹先谢过了~~~~
 |