[attach]13353[/attach]
download it
[attach]13354[/attach]作者: softsadwind 時間: 2012-12-1 16:58
哈哈 我又來了
反正作自己有興趣的事情囉
[attach]13362[/attach]
查字典02作者: cautionkimo 時間: 2013-2-2 00:29
Sub searchITxx(rng As Range)
Dim XH As Object
Dim iurl, iurl2 As String
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
'從Yahoo字典摘取第一組中文翻譯
rng.Offset(0, 2) = Split(Split(.responseText, "<p class=""explanation"">")(1), "<")(0)