Macos 用于MAC导航浏览器的VBA,具有复杂的功能
我有一个Google Analytics宏,它在Windows中运行得非常好,但我需要在MAC中使用它。 我无法打开浏览器并在其中导航。这是我使用的代码示例,但在MAC中找不到支持: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
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中导航和使用支持此功能的浏览器吗