将 .currentCellRow 字段从 SAP 提取到 Excel
Extracting .currentCellRow fields from SAP to Excel
我使用 vba 和 SAP 有一段时间了,但从未 运行 解决过这个问题。
通常,当在 SAP 中录制脚本时,我单击一个字段,然后留下一些以 .setfocus 作为结尾的代码字符串。我将其替换为 .text 以提取该单元格中的数据。
我已经 运行 进入一个以 .currentCellRow= # 结尾的菜单,因此如果我改变它,它就会失去它的位置并且不知道我在说什么字段。
有什么方法可以调整它以从这些字段中提取数据吗?
这是我编写脚本的字段示例
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellRow = 4
.getcellvalue(4,"name of column")
另见:https://answers.sap.com/questions/300278/reading-grid-cells-sap-gui-scripting-vbs.html
此致,
脚本人
我使用 vba 和 SAP 有一段时间了,但从未 运行 解决过这个问题。
通常,当在 SAP 中录制脚本时,我单击一个字段,然后留下一些以 .setfocus 作为结尾的代码字符串。我将其替换为 .text 以提取该单元格中的数据。
我已经 运行 进入一个以 .currentCellRow= # 结尾的菜单,因此如果我改变它,它就会失去它的位置并且不知道我在说什么字段。
有什么方法可以调整它以从这些字段中提取数据吗?
这是我编写脚本的字段示例
session.findById("wnd[0]/usr/cntlGRID1/shellcont/shell").currentCellRow = 4
.getcellvalue(4,"name of column")
另见:https://answers.sap.com/questions/300278/reading-grid-cells-sap-gui-scripting-vbs.html
此致, 脚本人