- ©«¤l
- 519
- ¥DÃD
- 54
- ºëµØ
- 0
- ¿n¤À
- 595
- ÂI¦W
- 256
- §@·~¨t²Î
- win 10
- ³nÅ骩¥»
- []
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-3-19
- ³Ì«áµn¿ý
- 2024-11-23
|
¦^´_ 1# DanielWONG
¸Õ¬Ý¬Ý³o¼Ë¥i¥H¶Ü?- Sub test()
- Dim i&, strT$, strAA$, strQQ$
- Dim Ans1#, Ans2#
-
- ''' strQQ = TD3.innerText
- strQQ = "¦¬¥«»ù(´ä¤¸) 219.200 ¤É¶^ +1.000¦¨¥æ¶q|¤â 2.79¦Ê¸U¶R»ù(©µ¿ð)1 219.20«e¦¬¥«»ù/¶}¥« 218.20 / 218.20" & _
- "¤É¶^(%) +0.458%¦¨¥æª÷ÃB 6.12»õ½æ»ù(©µ¿ð)1 219.40ªi´T 218.20 - 220.20" & _
- "§¡»ù 219.221ªfªÅÃB/¤ñ²v(%)(27/10) 4.75¤d¸U / 7.756%" & _
- "¥«¬Õ²v(¿)/TTM 46.050 / 42.563¨CªÑ¬Õ§Q(´ä¤¸)(ºI¦Ü 2016/12) 4.760"
- Ans1 = FindText(strQQ, "¦¨¥æª÷ÃB")
- Ans2 = FindText(strQQ, "§¡»ù")
- Debug.Print Ans1, Ans2
- End Sub
- Function FindText(strQQ$, QQ$)
- Dim strAA$, a%, b%
- a = InStr(strQQ, QQ)
- b = Len(QQ) - 1
- strAA = ""
- For i = 1 To 10
- strT = Mid(strQQ, i + a + b, 1)
- If Asc(strT) <> 32 Then '¥h°£ªÅ®æ
- If Asc(strT) < 46 Or Asc(strT) > 57 Then Exit For '¼Æ¦rªº ASCII½X
- strAA = strAA & strT
- End If
- Next
- FindText = strAA
-
- End Function
½Æ»s¥N½X «Øij§â§Aªº VBA ¶K¥X¡A¤]³\¦³¨ä¥Lªº¤H¤£¥Î¸ÑªR¦r¦ê´N¥i¥H¦³µª®× |
|