错误 "call was rejected by callee" 是什么意思?

What does error "call was rejected by callee" mean?

当运行如下代码时,第4行出现错误:

call was rejected by callee"

excel.open

window ✱Excel

keyboard ‴Remember, remember!‴

excel.setvalue value ‴The fifth of November‴ row 2 colindex 1

excel.setvalue value ‴The Gunpowder treason and plot‴ row 3 colname A

excel.getvalue row 1 colname A result ♥guy

dialog ♥guy

为什么会出现这种情况?

发生此错误是因为在第 3 行您正在编辑 excel 单元格(光标处于活动状态)。你不能一次编辑两个单元格,所以我有两个解决方案给你。

  1. 不要使用 keyboard,使用 excel.setvalue

  2. 插入值
  3. 使用 keyboard 但按 Enter 键完成单元格编辑。

excel.open
window ✱Excel✱
keyboard ‴Remember, remember!⋘enter⋙‴
excel.setvalue value ‴The fifth of November‴ row 2 colindex 1
excel.setvalue value ‴The Gunpowder treason and plot‴ row 3 colname A
excel.getvalue row 1 colname A result ♥guy
dialog ♥guy