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

ExcelµLªk¶×¤Jºô¯¸¸ê®Æ¡AÀµ½ÐÀ°¦£¡I

ExcelµLªk¶×¤Jºô¯¸¸ê®Æ¡AÀµ½ÐÀ°¦£¡I

³Ìªñ­n±Nhttp://jsjustweb.jihsun.com.tw/z/zc/zcr/zcr0_2891.djhtmªº¸ê®Æ¹B¥Î¨ìexcelÀɤ¤¡A´î¤Ö¦Û¦æ¬d¸ß¤Î¿é¤Jªº®É¶¡
«oµo²{¤£¯à§Q¥Îexcel"¸ê®Æ"-->"¶×¤J¥~³¡¸ê®Æ"-->"·s¼Wweb¬d¸ß"ªº¤è¦¡ª½±µ¶×¤J¡A·|¥X²{"¦¹web¬d¸ß¨S¦³¦^¶Ç¸ê®Æ"ªº´£¥Ü
¸gª¦¤å¡Aª¾¹D¥i¥H¥ÎVBA¨Ó¶×¤J¡A¦ý¬O¤p§Ì¾ÇÃÀ¤£ºë¡AÁöµM¦³§ä¨ìhttp://forum.twbts.com/viewthread.php?tid=7586¦¹½g¤å³¹¨Ó°Ñ¦Ò
¦ý­×§ï¸Ì­±ªººô§}¸ò°Ñ¼Æ¤§«á¡A¤´¥u¯àÅã¥Ü²Ä¤@¦æ¸ê®Æ´N·|¥X²{¿ù»~"¨S¦³³]©wª«¥óÅܼƩÎWith°Ï¶ôÅܼÆ"



©Ò¥H·Q½Ð°Ý¦U¦ì¥ý¶iÀ°¦£¡A¸Ó¦p¦ó­×§ïµ{¦¡½X¤~¯à±N¸ê®Æ¶×¤J¡A¨Ã¥i¥H¥ô·N­×§ïªÑ²¼¥N¸¹©O¡H¦p¤Uªþ¤W§Ú­×§ï«áªºµ{¦¡½X
·PÁ¦^µª¡I
Sub Ex()
    Dim xlVbTable As Object, Ar, R As Integer, C As Integer
    With CreateObject("InternetExplorer.Application")
        .Visible = True
       .Navigate "http://jsjustweb.jihsun.com.tw/z/zc/zcr/zcr0_2891.djhtm"
        Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
        Set xlVbTable = .document.getelementsbytagname("table")(11)
        Ar = Split(xlVbTable.Rows(0).Cells(0).innerText, Chr(10))(1)
        With ActiveSheet
            .Cells(1, 1) = Mid(Ar, 1, InStr(Ar, ":"))
            .Cells(1, 2) = Mid(Ar, InStr(Ar, ":") + 1, 9)
            For R = 1 To xlVbTable.Rows.Length - 1
                For C = 0 To xlVbTable.Rows(1).ALL.Length - 1
                    .Cells(R + 1, C + 1) = xlVbTable.Rows(R).Cells(C).innerText
                Next
            Next
        End With
       .Quit
    End With
End Sub

        ÀR«ä¦Û¦b : ¤Hªº¤ß¦a¬O¤@²¥¥Ð¡A¤g¦a¨S¦³¼½¤U¦nºØ¤l¡A¤]ªø¤£¥X¦nªºªG¹ê¡C -
ªð¦^¦Cªí ¤W¤@¥DÃD