½Ð°Ý³oÓºô¶¦p¦ó¥ÎWEB¬d¸ß¿é¤Jexcel
- ©«¤l
- 161
- ¥DÃD
- 26
- ºëµØ
- 0
- ¿n¤À
- 187
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2011-1-2
- ³Ì«áµn¿ý
- 2022-2-16
|
¦^´_ 56# GBKEE
½Ð°Ý GBKEE ª©¥D
ie.Navigate "about:Tabs"
§@¥Î¬O¦p¦ó¡AÁÂÁ |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 60# GBKEE
(¦pªG§â Set ie ¥H¤Î ie.Quit §ï¦¨µùÄÀ)
ªþ¤W´ú¸Õ¥Îµ{¦¡½X¡G- Sub ¹d¨Éºô2()
- Dim URL As String, shts As Worksheet, ie As Object
- Dim x As Variant, A As Object
-
- ' Set ie = CreateObject("InternetExplorer.Application")
- ' ie.Navigate "about:Tabs"
- ' ie.Visible = True
-
- Set shts = ActiveSheet ' Sheets("¤u§@ªí2")
- shts.Cells.Clear
-
- URL = "http://www.cnyes.com/twstock/Institutional/1101.htm"
- With CreateObject("InternetExplorer.Application")
- .Visible = True ' ¬O§_Åã¥Ü IE
- .Navigate URL
-
- Do While .ReadyState <> 4 Or .Busy: DoEvents: Loop
-
- For Each x In .Document.getElementsBytagname("input")
- If x.Value = "¬d¸ß" Then x.Click: Exit For
- Next
-
- Do While .ReadyState <> 4 Or .Busy: DoEvents: Loop
-
- Set A = .Document.getElementsBytagname("table")
- For x = 1 To 6
- ' With ie
- .Document.body.innerHTML = A(x).outerHTML
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- ' End With
-
- With shts
- .Range("A" & .[A65535].End(xlUp).Row + 1).Select
- .PasteSpecial Format:="HTML"
- End With
- Next
-
- shts.Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
- .Quit
- End With
-
- ' ie.Quit
- 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
|
¦^´_ 60# GBKEE
§Ú쥻ªº´ú¸Õµ{¦¡½X¡G- Sub ¹d¨Éºô3()
- Dim URL As String, shts As Worksheet
- Dim x As Variant, xi As Integer
-
- Set shts = ActiveSheet ' Sheets("¤u§@ªí2")
- URL = "http://www.cnyes.com/twstock/Institutional/1101.htm"
-
- With CreateObject("InternetExplorer.Application")
- .Visible = True ' ¬O§_Åã¥Ü IE
- .Navigate URL
-
- Do While .ReadyState <> 4 Or .Busy
- DoEvents
- Loop
-
- For Each x In .Document.getElementsBytagname("input")
- If x.Value = "¬d¸ß" Then x.Click: Exit For
- Next
-
- shts.Cells.Clear
- For xi = 1 To 6
- ' .document.body.innerHTML = .document.getElementsBytagname("table")(1).outerHTML
- .Document.body.innerHTML = .Document.getElementsBytagname("table")(xi).outerHTML
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
-
- With shts
- ' .Cells.Clear
- .Range("A" & .[A65535].End(xlUp).Row + 1).Select
- .PasteSpecial Format:="HTML"
- ' .Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
- End With
- Next xi
- shts.Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
-
- .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
|
¥»©«³Ì«á¥Ñ c_c_lai ©ó 2013-11-22 07:36 ½s¿è
¦^´_ 60# GBKEE
(¹Ï¤¤ »P54# ªºµ{¦¡½X¦³ÂI¤£¼Ë)
ªþ¤W°õ¦æ¤§µ{¦¡½X¡G- Sub ¹d¨Éºô4()
- Dim URL As String, shts As Worksheet
- Dim x As Variant, xi As Integer, A As Object, xlHtm
- Set shts = ActiveSheet ' '("¤u§@ªí2")
- shts.Cells.Clear
- URL = "http://www.cnyes.com/twstock/Institutional/1101.htm"
- With CreateObject("InternetExplorer.Application")
- .Visible = True ' ¬O§_Åã¥Ü IE
- .Navigate URL
- Do While .ReadyState <> 4 Or .Busy
- DoEvents
- Loop
- For Each x In .Document.getElementsBytagname("input")
- If x.Value = "¬d¸ß" Then x.Click: Exit For
- Next
- Do While .ReadyState <> 4 Or .Busy: DoEvents: Loop
- xlHtm = .Document.body.innerHTML 'Àx¦s
- Set A = .Document.getElementsBytagname("table")
- For xi = 1 To 6
- .Document.body.innerHTML = A(xi).outerHTML
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- With shts
- .Range("A" & .[A65535].End(xlUp).Row + 1).Select
- .PasteSpecial Format:="HTML"
- End With
- .Document.body.innerHTML = xlHtm 'ÁÙì
- Next xi
- shts.Cells.EntireColumn.AutoFit ' ¦Û°Ê½Õ¾ãÄæ¼e
- .Quit
- End With
- End Sub
½Æ»s¥N½X
P.S. ³o¬Oè¤~¤~°õ¦æ¥X¨Óªº¨MªG¡C |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 65# GBKEE
(56#ªºµ{¦¡½X¦bªÅ¥Õºô¶©ñ¸m "table"ªº¼gªk)
§Ú±N "ªÅ¥Õºô¶" ÁôÂð_¨Óµøı¤W²M²n¦h¤F¡C- Set ie = CreateObject("InternetExplorer.Application")
- ie.Navigate "about:Tabs"
- ' ie.Visible = True
½Æ»s¥N½X °õ¦æ¨MªG¤@¤Á OK¡C |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 68# GBKEE
»¡ªº¤]¬O¡I
ÁÂÁ«ü¾É¡C |
|
|
|
|
|
|
- ©«¤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
|
¦^´_ 68# GBKEE
¨Æ«á·Q·Q¡Aµoı§Q¥Î "ªÅ¥Õºô¶" ¨Ó°µ¬°Á{®É¾Ô³õ (¶i¦æ½Æ»s¤u§@)¡A
³oÓ Idea ÆZ¦nªº¡A¥ç¤£·|¯}Ãa쥻ºô¶ªº Table ¤º®e¡C- Set A = .Document.getElementsBytagname("table")
- For x = 1 To 6
- With ie
- .Document.body.innerHTML = A(x).outerHTML
- .ExecWB 17, 2 ' Select All
- .ExecWB 12, 2 ' Copy selection
- End With
-
- With shts
- .Range("A" & .[A65535].End(xlUp).Row + 1).Select
- .PasteSpecial Format:="HTML"
- End With
- Next
½Æ»s¥N½X |
|
|
|
|
|
|