小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:: ^+ X; G$ c0 z% m# I
kanal:= DDEConnect("Excel", "Cost");, K$ n. s# B- N
DDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);+ w* Q U5 {# ]/ ~0 Q. k. S
DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);
& v8 h {; }' V) b( GDDEDisconnect(kanal);( ^$ y) E ^' L( l, {" H' G# x7 f
系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
- y2 R7 s4 E4 m% c$ B
! I+ I2 O- E' o% ~' z: s" T请高手们不吝赐教~~小妹先谢过了~~~~ |