- 帖子
- 142
- 主題
- 18
- 精華
- 0
- 積分
- 160
- 點名
- 294
- 作業系統
- win10 64位元
- 軟體版本
- office2003
- 閱讀權限
- 20
- 性別
- 男
- 來自
- 臺灣 高雄市
- 註冊時間
- 2015-7-18
- 最後登錄
- 2026-11-1
         
|
回復 2# stillfish00
Sub SPGCL2LP()
Sheets("SPGCL2LP").Select
Dim E As Object, myItems As Object, myitem
With CreateObject("InternetExplorer.Application")
.Visible = False
.Navigate "http://finance.yahoo.com/quote/%5ESPGCL2LP"
Application.Wait Now + #12:00:03 AM#
.ExecWB 17, 2 ' Select All
.ExecWB 12, 2 ' Copy selection
With ActiveSheet
.Cells.Clear
.[A1].Select
.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
End With
.Quit '關閉網頁
End With
[A52].Select
End Sub |
|