EXCEL VBA ¶×¤Jgoodinfoºô¶¸ê®Æ
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-5-30
- ³Ì«áµn¿ý
- 2016-6-1
|
EXCEL VBA ¶×¤Jgoodinfoºô¶¸ê®Æ
¦³©¯google¨ìª©¤jGBKEEªº¤å³¹
¸ÕµÛ¥h¬d¸ßhttp://www.goodinfo.tw/stockinfo/ShowK_ChartFlow.asp?RPT_CAT=DR_3M&STOCK_ID=2454&CHT_CAT=MONTH
¦ý·|¦³ª«¥ó¿ù»~
Option Explicit
Sub goodinfo()
Dim A As Object, i As Integer, C As Variant, Sh As Worksheet, Stock As String
Do
Stock = InputBox("¿é¤JªÑ²¼¥N¸¹", "ªÑ²¼¥N¸¹", 2303)
Loop Until Len(Stock) >= 4
Set Sh = ActiveSheet '¥i«ü©w¤u§@ªí
With CreateObject("InternetExplorer.application")
.Navigate "http://www.goodinfo.tw/stockinfo/ShowK_ChartFlow.asp?RPT_CAT=DR_3M&STOCK_ID=" & Stock & "&CHT_CAT=MONTH"
.Visible = True
Do While .Busy Or .ReadyState <> 4
DoEvents
Loop
Sh.Cells.Clear
Set A = .Document.getelementsbytagname("table")(0)
For i = 0 To A.Rows.Length - 1
For C = 0 To A.Rows(i).Cells.Length - 1
ActiveSheet.Cells(i + 1, C + 1) = A.Rows(i).Cells(C).innertext
Next
Next
Set A = .Document.getelementbyid("content")
For i = 0 To A.Rows.Length - 1
For C = 0 To A.Rows(i).Cells.Length - 1
ActiveSheet.Cells(i + 4, C + 1) = A.Rows(i).Cells(C).innertext
Next
Next
Sh.UsedRange.EntireColumn.AutoFit
.Quit
End With
MsgBox "OK"
End Sub |
|
|
|
|
|
|
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-5-30
- ³Ì«áµn¿ý
- 2016-6-1
|
Sorry, ¸É¥R¤@¤U¤º®e ¥Dn¬On¬d¸ß
ºô¶©³¤Uªºªí®æ
http://www.goodinfo.tw/stockinfo/ShowK_ChartFlow.asp?RPT_CAT=DR_3M&STOCK_ID=3406&CHT_CAT=MONTH |
|
|
|
|
|
|
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- win
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2016-5-30
- ³Ì«áµn¿ý
- 2016-6-1
|
ÁÂÁª©¥D, ¥i¥H¹B¦æ
³o´X¤Ñ°µ¤F¤£¤Ö¥\½Ò
¤£¹LÁÙ¬OµLªk§¹¦¨
¬Ý¤Fª©¥Dªº¥N½X«á¾Ç¤F¤£¤Ö
ÁÂÁ À°¦£ |
|
|
|
|
|
|
- ©«¤l
- 115
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 178
- ÂI¦W
- 2
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2011-1-12
- ³Ì«áµn¿ý
- 2024-11-15
|
½Ð±Ðª©¤j¡A ¦pªGn±N 3Ó¤£¦Pªººô¶¸ê®Æ ©ñ¦b¦P¤@Ó¤u§@¶¸Ì¡A VBAn¦p¦ó§ï¡C
²Ä¤@Óºô¶¸ê®Æ±q²Ä 1¦C¶}©l©ñ¡A¸ê®Æ ¦@35¦æ¡C
²Ä¤GÓºô¶¸ê®Æ±q²Ä40¦C¶}©l©ñ¡A¸ê®Æ ¦@41¦æ¡C
²Ä¤TÓºô¶¸ê®Æ±q²Ä90¦C¶}©l©ñ¡A¥unÂ^¨úºô¶«e30¦æªº¸ê®Æ ¡C
http://www.taifex.com.tw/chinese/3/7_12_3_tbl.asp (35¦æ)
http://www.taifex.com.tw/chinese/3/7_12_5_tbl.asp (41¦æ)
http://www.taifex.com.tw/chinese/3/7_8_tbl.asp («e30¦æ) |
|
|
|
|
|
|