- ©«¤l
- 361
- ¥DÃD
- 57
- ºëµØ
- 0
- ¿n¤À
- 426
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- 2003,2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-13
- ³Ì«áµn¿ý
- 2022-12-8
|
¥»©«³Ì«á¥Ñ joey0415 ©ó 2015-8-14 18:44 ½s¿è
¦^´_ 1# 97forum
²Ä¤@¦¸¥Î³o¼Ëªº¤è¦¡¸õÂন¥\¡A¬Ý¨Ó³o¤]¬O¤£¿ùªº¤è¦¡¡I
Y¦³»Ý¦æ½Ð³]©w¤Þ¥Î¶µ¥Ø
microsoft internet controls- Sub ´¹°¶¹q¤l¼Æ¾Ú¬d¸ß()
- With CreateObject("internetexplorer.application")
- .Visible = True
- .Navigate "http://www.commotec.com.tw/product/list.aspx?id=2834&brand=AUK"
- Do Until .ReadyState = 4
- DoEvents
- Loop
- s = 0
-
- For p = 1 To 6 '¦@¦³¤»¶
- .Navigate "javascript:__doPostBack('_ctl0$MainPlaceHolder$AspNetPager','" & p & "')" 'Âà¸õ¦Ü«ü©w¶±
- Do Until .ReadyState = 4
- DoEvents
- Loop
-
- ' Stop
- Set hTable = .Document.getElementsByTagName("table")(5) '²Ä¤Ótable
-
- With ActiveSheet
- For i = 2 To hTable.Rows.Length - 1 '«e¤GÓ¬O¼ÐÃD»PªÅ¥Õ¸õ¹L
- For j = 0 To hTable.Rows(i).Cells.Length - 1
- .Cells(s + i - 1, j + 1) = hTable.Rows(i).Cells(j).innerText
- Next
- Next
- End With
- s = s + 20
-
- Next
- .Quit
- MsgBox "OK"
- End With
- End Sub
½Æ»s¥N½X |
|