Excel VBA §ìHTML ¤¤ªº¬Y¤@ÓTable
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
Excel ¥~³¡¸ê®Æ
½Ð°Ý¦³¤Hª¾¹D«ç¼Ë¥ÎExcel¨ú±o¥~³¡¸ê®Æ¡A§Ú·Qn®³¨ìGoodinfo³oÓlink¥kÃä¤U±ªº¶°«O¤À¯Åªº¸ê°T
http://www.goodinfo.tw/stockinfo/EquityDistributionClassHis.asp?STOCK_ID=1314
¦ý¬O³z¹L³o¼ËªºIQY¤À¬On¤£·|¨Ó¡A¦³¤j¤jª¾¹D«ç¼Ë§Ë¶Ü?
WEB
1
http://www.goodinfo.tw/stockinfo/EquityDistributionClassHis.asp?STOCK_ID=1314
Selection=15
Formatting=None
PreFormattedTextToColumns=True
ConsecutiveDelimitersAsOne=True
SingleBlockTextImport=False
DisableDateRecognition=False
DisableRedirections=False |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
VBA §ì¨úºô¶¤ºªº¬Y¤@ÓTable
½Ð°Ý¦U¦ì¤j¤j¡A¦³¤Hª¾¹D«ç¼Ë§ì¤U¦C³oÓºô§}¸Ì±ªº¤jTable¶Ü? ³z¹LVBA
http://www.goodinfo.tw/stockinfo/StockSorter.asp? |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 16
- ÂI¦W
- 0
- §@·~¨t²Î
- XP 32bit
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-12-10
- ³Ì«áµn¿ý
- 2018-6-7
|
¤£ª¾¥H¤Uªº³sµ²¥i§_À°¨ì±z...
http://white5168.blogspot.tw/2012/08/excel-vba_2330.html |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
¦^´_ 2# ssthree
¤£¦n·N«äÁÙ¬O·d¤£¤Ó©w¡A¦b§Ú©Ò»Ýnªººô§}¤¤
www.goodinfo.tw/StockInfo/StockSorter.asp
§Úª¾¹D§ÚnªºTable¬O²Ä8Ó¡Aþ¦ì¤j¤j¥i¥Hµ¹¤@¤U²³æªºVBA½XÅý¤p§Ì°Ñ¦Ò¶Ü?§Ú¥Î¹L¤U¦C³o¼Ëªº¤è¦¡¦ý¬O´N¬OÁÙ¬O¦³°ÝÃD
¥ý¥Î ActiveSheet.QueryTables.Add("URL;" & weburl, Destination:=Range("A1")) §â§ÚnªºURLÁý¶i¥h
.WebFormatting = xlWebFormattingNone
.WebTables = "8" <---³oÃä§ï¦¨²Ä8Ótable
.Refresh 0
.Delete |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
Excel VBA §ìHTML ¤¤ªº¬Y¤@ÓTable
¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-8-1 19:34 ½s¿è
½Ð¦U¦ì¤j¤jµ¹§Ú¤@Ósample code§Ú¬O·Qn¨ú±o¤U±ªºµÛºô¯¸ªº¤U±ªº¤jTable
¬Ý¤F¦n¤[ÁÙ¬O§Ë¤£¦n§r
http://www.goodinfo.tw/stockinfo/StockSorter.asp?
©Î¬Oµ¹§Ú¤@Ó½d¨Ò¬O¥h§ì¬Y¤@Óºô¶¸Ì±ªºtable§Ú¦b¦Û¤v¸Õ¸Õ¬Ý«ç¼Ë§ïÁÂÁ |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 1# BarryHuang621a
«Øij²¾¦Ü EXCELµ{¦¡°Ï ¸ß°Ý |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# BarryHuang621a
§A´£¨Ñ´¼¼z¿ïªÑ¤u¨ãªººô§},¦b§Úªº XP, IE8 Àô¹Ò¤U°õ¦æ«ÜºC,¦³®É·|±¾±¼
½Ð¸Õ¸Õ§Oªººô§}- Option Explicit
- Sub Ex()
- Dim D As Object, i As Integer, URL As String
- URL = "http://forum.twbts.com/thread-12273-1-2.html"
- 'URL = "http://www.goodinfo.tw/stockinfo/StockSorter.asp?"
- With CreateObject("InternetExplorer.Application")
- .Navigate URL
- .Visible = True
- Do While .ReadyState <> 4 Or .Busy
- DoEvents
- Loop
-
- Set D = .document.getElementsByTagName("table")
- ActiveSheet.Cells.Clear
- For i = 0 To D.Length - 1
- Ep i, D(i).outerHTML
- Next
- .Quit
- End With
- End Sub
- Private Sub Ep(i As Integer, S As String)
- Dim R
- With CreateObject("InternetExplorer.Application")
- .Navigate "about:Tabs"
- .Visible = True
- .document.body.innerhtml = S
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- With ActiveSheet
- R = IIf(.UsedRange.Rows.Count = 1, 1, .UsedRange.Rows.Count + 2)
- .Cells(R, 1) = "²Ä " & i & " Ó Table"
- .Cells(R, 1).EntireRow.Interior.Color = vbYellow
- .UsedRange.Cells(R + 1, 1).Select
- .PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
- End With
- .Quit
- End With
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
Excel VBA Ū¨úºô·~¦sÀÉ
¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-8-11 05:31 ½s¿è
½Ð°Ý¦U¦ì¤j¤j:
§Ú·Qn¥ÎVBA¨ú±o¤@Óºô¶µM«á§âºô¶ªºHTMLÀɮצs¤U¨Ó½Ð°Ýn«ç¼Ë§Ëù? |
|
|
|
|
|
|
- ©«¤l
- 6
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 10
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2014-7-20
- ³Ì«áµn¿ý
- 2019-4-7
|
·PÁ±zªº¦^ÂСA¦]¬°¤§«e¤@ª½¨S¦³±o¨ì¤è¦V©Ò¥H¤~¤@ª½µo©«©êºpÀ£~~
±zªº½d¨Ò§Úèè¬O¹L¬O¥i¥Hªº·PÁ·PÁ |
|
|
|
|
|
|