½Ð°Ý³oÓºô¶¦p¦ó¥ÎWEB¬d¸ß¿é¤Jexcel
- ©«¤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
|
¦^´_ 35# GBKEE
¤p§Ì¤S´«¤F¤@Óºô¯¸
³oÓºô¯¸§Ú·|¥Î¦n´XºØ¤èªk§ì¤F¡A¥u¤£¹L³o¦¸´«¦¨³oºØ¤è¦¡®É¡A¦pªGª½±µrunµ²ªG¡A·|¥X²{¦p¤U¹Ï¡A¥d¦b¨º¤@¥y¸Ü
ªí®æ("table")(7)¬O¹ïªº¡A¦]¬°¦³¦¨¥\¹L
.document.body.innerHTML = .document.getelementsbytagname("table")(7).outerHTML
¦pªG«öF8¤@¨B¨B°õ¦æ®É¡A¦³®ÉÔ·|¦¨¥\¡A¦³®ÉÔ·|¥¢±Ñ- Sub test1()
- Dim URL As String
- ActiveSheet.Cells.Clear
- URL = "http://www.tdcc.com.tw/smWeb/QryStock.jsp"
- With CreateObject("InternetExplorer.Application")
- .Visible = True ' ¬O§_Åã¥Ü IE
- .Navigate URL
- Do While .readyState <> 4: DoEvents: Loop
- .document.All.tags("option")(7).Selected = True
- .document.getelementsbytagname("input")(1).Value = "2330"
- .document.getelementsbytagname("input")(4).Click
- Do While .readyState <> 4: DoEvents: Loop
- .document.body.innerHTML = .document.getelementsbytagname("table")(7).outerHTML
- .execwb 17, 2 ' Select All
- .execwb 12, 2 ' Copy selection
-
- With ActiveSheet
- .Cells.Clear
- .[A1].Select
- .PasteSpecial Format:="HTML", NoHTMLFormatting:=True
- .Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
- End With
- .Quit
- End With
-
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 40# joey0415
¤F¸Ñ¡I¦ý¥u¬OµLªk©ú½T¦a¬Ý¥X Table ªº³æ¤¸¡A
§Y (0)¡B(1)¡B(2)¡B . . . .µ¥µ¥¡C
ÁÂÁ¡I |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 42# c_c_lai
ÂIÀ»innertextªº¸Ó³æ¤¸®æ¡A´N¬Ý¨ì¤º®e§r¡I
[CA4]¨º®æ´Nª¾¹D¤F¡A¯uªº²M·¡¡A©¹¥ª¤@¬Ý´Nª¾¹D¬O«üTABLE 1 |
|
|
|
|
|
|
- ©«¤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 ©ó 2013-11-20 13:27 ½s¿è
¦^´_ 43# GBKEE
½Ð°Ý¶Wª©¡A¥±`³£n¥[¸ü§¹¦¨¡A¤~°µ¤U¤@¨B¡IY¤£§¹¦¨¡A¥i¯àn§äªº¸ê®Æ¨S¦³§ä¨ì·|¥X¿ù
¦ÓBUSY »P§¹¥þªº®t²§¤S¦bþ©O¡H½Ð«ü±Ð¤@¤U
¦pªG¥Dªº¤èªk¬O¥¿½Tªº¡A¨º¥H«á¥u¦³¤U¸ü¦³Ãöªº»yªk³£n§ï¦¨³o¼Ë¡AÁÙ¬O¥u¦³³oºô¯¸¤~n¯S§O¦p¦¹©O¡H
ÁÂÁ¶Wª©
==========================
½Ð°Ý¶Wª©¡G
¦pªG¤w¬d¸ß¤@Óºô§}«á¡A¤w±Nºô¯¸¤º®e§ï¦¨¤U¥y
.document.body.innerHTML = .document.getElementsBytagname("table")
¡A¦pªG¶K¤W«á¡AÁÙn¦^¨ì·íªìªºµe±¦A©¹¤U¬d¥t¤@Ó¸ê®Æ¡A¦Ó§Ú¤S¤£·Q¦ACREAT¥t¤@ÓIE¡A¥u·Q¥Î¥Ø«eªºIE¡A¦b¤£«±Òªº¤è¦¡¤U¡A¦p¦ó¦AÂà¦^·íªìªºµe±¡A¦A©¹¤U¬d©O¡H
ÁÂÁÂ |
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
¦^´_ 44# joey0415
«éµM¤j®©¡AÁÂÁÂÅo¡I |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ 46# c_c_lai
¥i§_¤À¨É¤@¤U¡A§ÚÁÙ¬O¬Ý¤£À´ ^_^ |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
|
|
|
|
|
|
- ©«¤l
- 2035
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 2031
- ÂI¦W
- 0
- §@·~¨t²Î
- Win7
- ³nÅ骩¥»
- Office2010
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-3-22
- ³Ì«áµn¿ý
- 2024-2-1
|
|
|
|
|
|
|