gpt4 book ai didi

vba - SAP的VBA声明结束

转载 作者:行者123 更新时间:2023-12-02 10:57:42 25 4
gpt4 key购买 nike

我正在做conexion宏但错误“语句结束”
出现和语法错误

我尝试使用重复的双引号,但未成功,出现其他错误
出现了

LINHA = 11
Cells(11, 1).Select

Cells(LINHA, 2).Value = session.findById("wnd[0]/usr/shell/shellcont[1]/shell[1]").Text" 2", "&Hierarchy"

最佳答案

从句法上讲,您基本上有以下要求(取决于我们正在查看的帖子的修订版):

Object.Property = Object.Method(arguments).Property"some stray string literal", "another string literal"
^ end of statement expected here

虽然这是法律声明:
Object.Property = Object.Method(arguments).Property

要么删除流浪字符串文字,要么将其作为 findById方法的参数的一部分-我不知道SAP API,但是由于您要针对它进行编码,因此您应该可以访问一些说明预期参数的文档。

这段代码将被编译-同样,我不知道SAP API希望看到什么,因此它可能会在运行时崩溃,但至少是合法代码:
ActiveSheet.Cells(LINHA, 2).Value = session.findById("wnd[0]/usr/shell/shellcont[1]/shell[1]", 2, "&Hierarchy").Text

关于vba - SAP的VBA声明结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56588511/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com