| ©«¤l5923 ¥DÃD13 ºëµØ1 ¿n¤À5986 ÂI¦W0  §@·~¨t²Îwin10 ³nÅ骩¥»Office 2010 ¾\ŪÅv150 ©Ê§O¨k ¨Ó¦Û¥xÆW°ò¶© µù¥U®É¶¡2010-5-1 ³Ì«áµn¿ý2022-1-23 
         
 | 
                
| ¦^´_ 1# ten999 À˵øºô¶ªº,ì©lÀɮצs¬° HTMÀÉ ,¦A«×¥´¶}¦¹HTMÀÉ ´N¥i®ø°£¶Ã½X
 ½Æ»s¥N½XOption 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
 | 
 |