- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# ten999
À˵øºô¶ªº,ì©lÀɮצs¬° HTMÀÉ ,¦A«×¥´¶}¦¹HTMÀÉ ´N¥i®ø°£¶Ã½X- Option Explicit
- Sub Ex()
- Dim Fs As Object, Url As String, OkFile As String, MyQuery As QueryTable
- Url = " http://www.p-shares.com/0051-4-1-1.asp" 'ºô§}
- OkFile = "D:\OK.HTM" '¤U¸ü«á¦sÀɦWºÙ
- With CreateObject("Microsoft.XMLHTTP")
- .Open "get", Url, False
- .send
- Set Fs = CreateObject("Scripting.FileSystemObject").CreateTextFile(OkFile, True)
- '«Ø¥ß¤@¤å¦rÀÉ(True:Àɮצp¦s¦b ¥iÂл\ÂÂÀÉ®×)
- Fs.WriteLine .responseText '¼g¤J¤å¦rÀÉ
- Fs.Close
- With ThisWorkbook.Sheets(1) '¤u§@ªí¤¤¶×¤JHTMÀÉ
- Set MyQuery = .QueryTables.Add("FINDER;file:///" & OkFile, .[a1])
- MyQuery.WebFormatting = xlWebFormattingNone
- MyQuery.Refresh 0
- End With
- End With
- End Sub
½Æ»s¥N½X |
|