小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
$ O/ p M: [# D' A6 xkanal:= DDEConnect("Excel", "Cost");) @) E0 {( L0 _8 y- V) g$ Y: G
DDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);
$ l& ^, o# }( k" }DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);: U2 d6 ]& E7 _; s8 i! R a/ P
DDEDisconnect(kanal); W& B7 y4 ~! A( T& ]
系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。- E5 c: y) r' z; F
2 g% y3 f7 I9 L' h) J0 u
请高手们不吝赐教~~小妹先谢过了~~~~ |