Excel 如何使用网页抓取从我的网站注销?
我需要帮助从我的网页注销后,我所有的报告工作完成。我有代码来登录和处理网页,但我面临着注销网页的问题。下面是我使用的代码:Excel 如何使用网页抓取从我的网站注销?,excel,vba,web-scraping,Excel,Vba,Web Scraping,我需要帮助从我的网页注销后,我所有的报告工作完成。我有代码来登录和处理网页,但我面临着注销网页的问题。下面是我使用的代码: Dim ie As InternetExplorer Dim ieDoc As Object Dim ieTable As Object Dim clip As DataObject Set ie = New InternetExplorer With ie .Visible = True .navigate "abc.com" Do Until
Dim ie As InternetExplorer
Dim ieDoc As Object
Dim ieTable As Object
Dim clip As DataObject
Set ie = New InternetExplorer
With ie
.Visible = True
.navigate "abc.com"
Do Until .readyState = 4
DoEvents
Loop
("UserName").Value = "****"
("Password").Value = "*******"
.submit
End With
''''''''''''''''''''''''''''''''''
'my body of the code goes here
''''''''''''''''''''''''''''''''''
'''''Before the Sub ends i need the logout code to logout from the web page
End Sub
尝试按id单击注销定位标记目标
ie.document.querySelector("#LogoutLink").click