Excel 刮取数据并在MsgBox中显示

Excel 刮取数据并在MsgBox中显示,excel,vba,Excel,Vba,一旦HTML有了文档,我想从此页面获取以下格式的数据: `enter code here`sub Button1_click() dim html as HTMLDocument Set objIE = CreateObject(InternetExplorer.Application") objIE.Visible = False Set html = objIE.Document 65.88 我想在变量中刮取65.88,并在MsgBox中显示。这就是您所能做到的吗?请发布您使用过的任何

一旦HTML有了文档,我想从此页面获取以下格式的数据:

`enter code here`sub Button1_click()
dim html as HTMLDocument 
Set objIE = CreateObject(InternetExplorer.Application")
objIE.Visible = False
Set html = objIE.Document
65.88

我想在变量中刮取
65.88
,并在MsgBox中显示。

这就是您所能做到的吗?请发布您使用过的任何其他代码,以及哪些代码有效/无效。你的问题是你不知道如何得到它?你有指示吗?尝试搜索“VBA从类返回值”或类似内容。你要去哪个网站?更多信息会有所帮助,我建议在加载页面内容后使用xPath。
<span class="current-price" data-role="change">65.88</span>