使用Excel VBA导入html
我想使用Excel VBA将网站的html代码导入到文件中。如何实现这一点?提前谢谢。有很多关于用vba删除html的教程。这里有一个很好的例子:使用internet.explorer对象和HTML对象库。玩得高兴使用Excel VBA导入html,html,excel,vba,Html,Excel,Vba,我想使用Excel VBA将网站的html代码导入到文件中。如何实现这一点?提前谢谢。有很多关于用vba删除html的教程。这里有一个很好的例子:使用internet.explorer对象和HTML对象库。玩得高兴 Dim response As String Dim httpReq As Object Set httpReq = CreateObject("WinHttp.httpRequest.5.1") httpReq.Open "GET", "http://google.com",
Dim response As String
Dim httpReq As Object
Set httpReq = CreateObject("WinHttp.httpRequest.5.1")
httpReq.Open "GET", "http://google.com", False
httpReq.Send
response = httpReq.responseText