小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
& s6 H* ]: j0 u. i8 J! pkanal:= DDEConnect("Excel", "Cost");
% y# Q, Q+ e3 h2 u/ T, EDDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);/ s6 G9 ?6 ? p( p% w) s
DDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);
( q# P1 t/ s8 S7 E( T2 d- O8 UDDEDisconnect(kanal);
3 q, @! J- H$ C系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。
/ \5 P" s8 O9 R0 h
% s# Z/ Q$ x* A( Q+ _% [请高手们不吝赐教~~小妹先谢过了~~~~ |