- 帖子
- 127
- 主題
- 28
- 精華
- 0
- 積分
- 160
- 點名
- 0
- 作業系統
- W7
- 軟體版本
- 2003
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2010-11-1
- 最後登錄
- 2017-5-20
|
15#
發表於 2013-10-21 14:44
| 只看該作者
Sub Test()
Dim oIe, myData As DataObject, x
Set myData = New DataObject '需引用 MS Form Object Library
With Sheets("問題")
.Range(.[A4], .[F4].End(xlDown)).Copy
End With
myData.GetFromClipboard
Set oIe = CreateObject("internetExplorer.Application")
With oIe
'.Visible = False
.navigate "http://www.evepraisal.com"
Do While oIe.readystate <> 4: DoEvents: Loop
.document.getElementById("raw_textarea").innerText = myData.GetText '填入
.document.getElementById("result_submit").Click 'submit
Application.Wait Now + TimeValue("00:00:05") '等待5秒完成
Set x = .document.getElementById("result_container")

如果想分別捉取紅圈處亖個 1 total sell value 2 total buy value 3 total volume 分別存入 L22 L23 L24 格中[/size]''
請問要怎改呢? 感謝~
MsgBox x.All.tags("h4")(0).innerText
.Quit
End With
End Sub |
|