§¹¦¨N¦¸¤U¸ü«á , ¤~·|¥X²{¶¥¬q¿ù»~91
- ©«¤l
- 219
- ¥DÃD
- 24
- ºëµØ
- 0
- ¿n¤À
- 243
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows10
- ³nÅ骩¥»
- Office2016
- ¾\ŪÅv
- 20
- ©Ê§O
- ¤k
- µù¥U®É¶¡
- 2012-4-18
- ³Ì«áµn¿ý
- 2022-2-7
|
§¹¦¨N¦¸¤U¸ü«á , ¤~·|¥X²{¶¥¬q¿ù»~91
¥»©«³Ì«á¥Ñ HSIEN6001 ©ó 2013-5-15 10:12 ½s¿è
§¹¦¨N¦¸¤U¸ü«á , ¤~·|¥X²{¶¥¬q¿ù»~91
½Ð°Ý§ÚÀ³¸Ó×¥¿þ¸Ì¡AÁÂÁÂ!!- Sub CashFlow(°]³ø§O, fileIdx As String)
- Dim IE As New InternetExplorer
- Select Case °]³ø§O
- Case "©u³ø": µ{¦¡ = "Cash_Q.aspx"
- Case "¦~³ø": µ{¦¡ = "Cash.aspx"
- End Select
-
- ¼g¤J¤u§@ªí = °]³ø§O
-
- IE.Visible = False
- UL = "http://2330.tw/Stock_" & µ{¦¡ & "?id=" & fileIdx
- IE.navigate UL
- Do While IE.readyState <> READYSTATE_COMPLETE
- DoEvents
- Loop
- Set oDoc = IE.document
- Call ListTableinnertext(oDoc)
- '
- '
- '
- Set oDoc = Nothing
- End Sub
- Sub ListTableinnertext(oDoc)
- Dim DocElemsCnt As Integer
- Dim Tbl As Object
- Dim CoLen As Integer, RwLen As Integer
- Dim iText As String
- For DocElemsCnt = 0 To oDoc.all.Length - 1
- If oDoc.all.Item(DocElemsCnt).tagName = "TABLE" Then '°õ¦æ§¹¦¨ N ¦¸¤U¸ü«á,¨C¦¸³£¦b³o¦æ¥X²{¶¥¬q¿ù»~91
- Set Tbl = oDoc.all.Item(DocElemsCnt)
- If Tbl.Rows.Length > 5 Then
- rCol = 0
- For RwLen = 0 To Tbl.Rows.Length - 1
- rCol = rCol + 1
- For CoLen = 0 To Tbl.Rows(RwLen).Cells.Length - 1
- iText = Tbl.Rows(RwLen).Cells(CoLen).innerText
- If Left(iText, 4) = "Page" Then Exit Sub
- Cells(RwLen + 1, CoLen + 4).Value = iText
- Next CoLen
- Next RwLen
- End If
- End If
- Next DocElemsCnt
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|