小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
' t- D; t# {! {+ akanal:= DDEConnect("Excel", "Cost");
) H& L r( x4 @) C- bDDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);/ b$ }( o& j5 V7 \2 T5 H9 J6 V
DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);
: h- g; h( b* c# M8 p! G- n9 V9 ADDEDisconnect(kanal);
3 h4 f; ~3 r- F7 J7 f- v, Z. m/ e系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
" ^2 i N9 L9 D9 v9 S; }; y* i# z
, h. x$ t; N& T& f2 d' d请高手们不吝赐教~~小妹先谢过了~~~~ |