- ©«¤l
- 129
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 178
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-12-28
- ³Ì«áµn¿ý
- 2018-11-10
|
- Sub searchIT(Rng As Range)
- Dim XH As Object
- Dim shpRm As Shape
- Dim iurl, iurl2 As String
- '²M°£¤w¦³ªº¸ÑÄÀ¤Îµ¼Ð
- iurl = "http://tw.dictionary.search.yahoo.com/search?p="
- iurl2 = "http://dict.tw/index.pl?query="
- With Rng.EntireRow
- .Resize(1, .Columns.Count - 1).Offset(0, 1).Clear
- End With
- '¶}±Òºô¶
- Set XH = CreateObject("Microsoft.XMLHTTP")
- With XH
- .Open "get", iurl & Rng, False
-
-
- .send
- On Error Resume Next
- '±qYahoo¦r¨åºK¨ú²Ä¤@²Õ¤¤¤å½Ķ
- 'Rng.Offset(0, 2) = Split(Split(.responseText, "<ol class=""explanation_ol""><li ><p class=""explanation"">")(1), "<")(0)
- Rng.Offset(0, 2) = Split(Split(.responseText, "<p class=""explanation"">")(1), "<")(0)
- 'ºK¨úKKµ¼Ð
- 'Rng.Offset(0, 1) = Left(VBA.Split(.responseText, "KK</span><span class=""proun_value"">")(1), InStr(VBA.Split(.responseText, "KK</span><span class=""proun_value"">")(1), "]"))
- Rng.Offset(0, 1) = Left(VBA.Split(.responseText, """proun_value"">")(1), InStr(VBA.Split(.responseText, """proun_value"">")(1), "]"))
- .Open "get", iurl2 & Rng, False
- .send
- '±qDICT.TW ^º~¦r¨åÂ^¨ú¦r¸q
- Rng.Offset(0, 3) = Split(Split(.responseText, "</span><br /> ")(1), "<")(0)
-
- End With
-
- End Sub
½Æ»s¥N½X
¬d¦r001.rar (25.32 KB)
download it
|
|