ExcelµLªk¶×¤Jºô¯¸¸ê®Æ¡AÀµ½ÐÀ°¦£¡I
- ©«¤l
- 10
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 12
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office2003©Î2010
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-11-20
- ³Ì«áµn¿ý
- 2014-12-24
|
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 |
|
|
|
|
|
|