Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/27.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/15.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
Excel 如何使用网页抓取从我的网站注销?_Excel_Vba_Web Scraping - Fatal编程技术网

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