Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 用于MAC导航浏览器的VBA,具有复杂的功能_Macos_Vba - Fatal编程技术网

Macos 用于MAC导航浏览器的VBA,具有复杂的功能

Macos 用于MAC导航浏览器的VBA,具有复杂的功能,macos,vba,Macos,Vba,我有一个Google Analytics宏,它在Windows中运行得非常好,但我需要在MAC中使用它。 我无法打开浏览器并在其中导航。这是我使用的代码示例,但在MAC中找不到支持: Set HTMLDoc = oIExplorer.document HTMLDoc.all.Email.Value = GAlogin ‘this is a string I got in another part of the code HTMLDoc.all.passwd.Value = GApassword

我有一个Google Analytics宏,它在Windows中运行得非常好,但我需要在MAC中使用它。 我无法打开浏览器并在其中导航。这是我使用的代码示例,但在MAC中找不到支持:

Set HTMLDoc = oIExplorer.document
HTMLDoc.all.Email.Value = GAlogin ‘this is a string I got in another part of the code
HTMLDoc.all.passwd.Value = GApassword ‘this is a string I got in another part of the code
For Each objButton In HTMLDoc.getElementsByTagName("input")
    If objButton.Type = "submit" Then
        objButton.Click
        Exit For
    End If
Next objButton
我找到了打开和浏览浏览器的方法,但没有一种方法支持这种代码。更具体地说,它们都不允许使用
getElementsByTagName
部分,也不允许遍历元素并单击按钮。
有人知道我如何在MAC中导航和使用支持此功能的浏览器吗