- ©«¤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
|
¦^´_ 5# ciboybj
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim D As Object, e As Object, URL As String
- '¤u·~¥Î»Ã¯À
- '¤u·~¥Î¤û¥¤µo»Ã¾¯
- '²G´¹
- '¨¾»G¾¯
- '¤u·~¥Î°£¯ä¾¯
- '¤u·~¥Î°®À꾯
- '¤¤©M¾¯
- URL = "http://tmsearch.tipo.gov.tw/TIPO_DR/GoodsIPOContent.jsp"
- With CreateObject("InternetExplorer.Application")
- .Navigate URL
- .Visible = True
- Do While .ReadyState <> 4 Or .Busy
- DoEvents
- Loop
- Set D = .document.all(6).all(0).contentWindow.frames.document.getElementsByTagName("INPUT")
- D("txtGoodsName").Value = "¤¤©M¾¯"
- For Each e In D
- If e.Value = "¬d¸ß" Then e.Click: Exit For
- Next
- Do While .ReadyState <> 4 Or .Busy
- DoEvents
- Loop
- Set D = .document.LastChild.LastChild.all(1).contentWindow.frames.document.getElementsByTagName("table")
- Ep D(0).outerHTML
- .Quit
- End With
- End Sub
- Private Sub Ep(S As String)
- 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
- .Cells.Clear
- .Range("A1").Select
- .PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:=False, NoHTMLFormatting:=True
- End With
- .Quit
- End With
- End Sub
½Æ»s¥N½X |
|