- ©«¤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
        
|
¦^´_ 2# kim223824
'URL = "http://amis.afa.gov.tw/v-htm/v102.htm"
'********ºô§}¦³§ïÅÜ ******
URL = "http://amis.afa.gov.tw/v-asp/v102q.asp"
¸Õ¸Õ¬Ý- Option Explicit
- Sub µæ»ù2015_12_05_1()
- Dim xTable As Object, k As Integer, c As Integer, r As Integer
- 'URL = "http://amis.afa.gov.tw/v-htm/v102.htm"
- '********ºô§}¦³§ïÅÜ ******
- URL = "http://amis.afa.gov.tw/v-asp/v102q.asp"
-
- With CreateObject("InternetExplorer.application")
- .Visible = True
- .Navigate URL
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- With .document
- .ALL("mkno").Value = 104
- .ALL("B1").Click
- End With
- Do While .Busy Or .readyState <> 4: DoEvents: Loop
- Set xTable = .document.getelementsbytagname("TABLE") '(1)
- With Sheets("¤U¸ü")
- .UsedRange.Clear
- k = 1
- For i = 0 To 1 ' For EACH E In xTable '.document.getelementsbytagname("TABLE")
- For r = 0 To xTable(i).Rows.Length - 1
- For c = 0 To xTable(i).Rows(r).Cells.Length - 1
- .Cells(k + r, c + IIf(i = 0, 1 + 1 * c, 1)) = xTable(i).Rows(r).Cells(c).innerText
- Next
- Next
- k = k + xTable(i).Rows.Length
- Next
- End With
- .Quit
- End With
- End Sub
½Æ»s¥N½X |
|