使用Chrome

时间:2015-10-10 20:13:47

标签: excel vba excel-vba google-chrome

我想从使用VBA的网站中提取信息并使用Chrome而不是Internet Explorer。我已经设法从VBA打开页面,但我正在努力的是如何参考打开的网页。

因此对于Internet Explorer我有:

Set objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate (s1.Cells(x, 1))
key = objIE.Document.getElementsByClassName("...").Innertext

现在我想在Chrome中复制此内容。我设法做到了:

Shell ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -url " & s1.Cells(x, 1))

但我不知道如何继续前进。

0 个答案:

没有答案