Tag: 重新加载

Excel VBA如何从网页(不caching)读取文本文件?

我一直使用下面的代码从网上读取文本文件: 'import the text file into a string Function DownloadTextFile(URL As String) As String On Error GoTo Err_GetFromWebpage Dim objWeb As Object Dim strXML As String ' Instantiate an instance of the web object Set objWeb = CreateObject("Microsoft.XMLHTTP") ' Pass the URL to the web object, and send the request objWeb.Open "GET", URL, False objWeb.send […]