ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

Ãö©óºô­¶¤U¸ü¸ê®Æ¶Ã½X°ÝÃD

¦^´_ 1# ten999
À˵øºô­¶ªº,­ì©lÀɮצs¬° HTMÀÉ ,¦A«×¥´¶}¦¹HTMÀÉ ´N¥i®ø°£¶Ã½X
  1. Option Explicit
  2. Sub Ex()
  3.     Dim Fs As Object, Url As String, OkFile As String, MyQuery As QueryTable
  4.     Url = " http://www.p-shares.com/0051-4-1-1.asp"   'ºô§}
  5.     OkFile = "D:\OK.HTM"                              '¤U¸ü«á¦sÀɦWºÙ
  6.     With CreateObject("Microsoft.XMLHTTP")
  7.         .Open "get", Url, False
  8.         .send
  9.         Set Fs = CreateObject("Scripting.FileSystemObject").CreateTextFile(OkFile, True)
  10.                                      '«Ø¥ß¤@¤å¦rÀÉ(True:Àɮצp¦s¦b ¥iÂл\ÂÂÀÉ®×)
  11.         Fs.WriteLine .responseText   '¼g¤J¤å¦rÀÉ
  12.         Fs.Close
  13.         With ThisWorkbook.Sheets(1)  '¤u§@ªí¤¤¶×¤JHTMÀÉ
  14.             Set MyQuery = .QueryTables.Add("FINDER;file:///" & OkFile, .[a1])
  15.             MyQuery.WebFormatting = xlWebFormattingNone
  16.             MyQuery.Refresh 0
  17.         End With
  18.   End With
  19. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD