我尝试在VBA中创建一个宏来打开网页并进行一些点击,但我在访问Document对象时遇到问题(Browser.Document):
Sub OpenApp()
Dim Browser As Object
Dim e As Object
Set Browser = CreateObject("InternetExplorer.Application")
Browser.Navigate "http://www.website.com"
Browser.Visible = True
Set e = Browser.Document.getElementById("idOfElement")
e.Click
End Sub
任何关于错误的想法?