小妹想通过 plant simulation 的命令控制相关的excel 文件的行为。但是一直被说语句错误。。。我是这样写的:
! s0 \0 E6 J) }7 c6 nkanal:= DDEConnect("Excel", "Cost");; w1 Y( [1 [# P v5 f5 F
DDEExecute(kanal,"Worksheets("Cost").Range("B129").Value = Worksheets("Cost").Range("G31").Value", 1000);
/ m: c9 w2 A n: D$ O) N. @& BDDEExecute(kanal,"Worksheets("Cost").Range("B121").Value = 35", 1000);/ ?5 q: D) O n! y. u7 g
DDEDisconnect(kanal);
! A" P3 D; j* T/ ? `$ S9 t% {系统一直报错,说语法有错。。。excecute 语句里的 cost那里有问题。。。。' f0 T, a( d" M/ f R9 n
! U7 l3 L# z( Z5 d请高手们不吝赐教~~小妹先谢过了~~~~ |