ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¥Îexcel¤Wºô¬d­µ¼Ð

¥Îexcel¤Wºô¬d­µ¼Ð

¥»©«³Ì«á¥Ñ Hsieh ©ó 2010-7-22 13:04 ½s¿è

http://gb.twbts.com/index.php?topic=11456.10


http://www.boxcn.net/shared/77cyt18g34
crdotlin ª©¥D°µªº¡C

ª©ªºexcel¥DÃD: ³æ¦r(µü)¾Ç²ß¤u¨ã ´¿°Q½×¹Lªº,¥Îexcel¤Wºô¬d­µ¼Ð¡C
¥u¬O²{¦byahooªººô­¶§ïÅܤF
½Ð°Ý²{¦b­n«ç»ò¥Î©O!
50 ¦r¸`¥H¤º
¤£¤ä«ù¦Û©w¸q Discuz! ¥N½X

¥»©«³Ì«á¥Ñ c_c_lai ©ó 2016-1-26 13:41 ½s¿è

¦^´_ 1# ¦Û§Ú·Pı¨}¦n
¦^´_ 2# Hsieh
¦^´_ 6# GBKEE
  1. Option Explicit

  2. Sub searchIT(Rng As Range)
  3.     Dim XH As Object
  4.     Dim shpRm As Shape
  5.    
  6.     '  ²M°£¤w¦³ªº¸ÑÄÀ¤Î­µ¼Ð
  7.     With Rng.EntireRow
  8.         .Resize(1, .Columns.Count - 1).Offset(0, 1).Clear
  9.     End With
  10.    
  11.     '  ¶}±Òºô­¶
  12.     Set XH = CreateObject("Microsoft.XMLHTTP")
  13.     With XH
  14.         .Open "get", "http://tw.dictionary.search.yahoo.com/search?p=" & Rng.Text, False
  15.         .send
  16.         On Error Resume Next
  17.         '  ºK¨ú²Ä¤@²Õ¤¤¤å½Ķ
  18.         '  Rng.Offset(0, 2) = Split(Split(.responseText, "class=""description""><p>1.")(1), "<")(0)
  19.         If InStr(.responseText, "><h4>1.") > 0 Then Rng.Offset(0, 2) = Trim(Split(Split(.responseText, "><h4>1.")(1), "<")(0))
  20.         '  ºK¨úKK­µ¼Ð
  21.         '  Rng.Offset(0, 1) = Left(VBA.Split(.responseText, "KK</span>  ")(1), InStr(VBA.Split(.responseText, "KK</span>  ")(1), "]"))
  22.         '  Rng.Offset(0, 1) = Split((Split(.responseText, "KK</span>")(1)), "<span>")(0)
  23.         If InStr(.responseText, ">KK[") > 0 Then Rng.Offset(0, 1) = "[" & Split(Split(.responseText, ">KK[")(1), "]")(0) & "]"
  24.     End With
  25.    
  26.     Rng.Select
  27. End Sub

  28. Sub Ex()
  29.     Dim Rng As Range
  30.    
  31.     For Each Rng In ActiveSheet.Range("A1", ActiveSheet.Range("A" & Rows.Count).End(xlUp))
  32.         Rng.Select
  33.         If Rng.Value <> "" Then
  34.             searchIT Rng
  35.         End If
  36.     Next
  37. End Sub
½Æ»s¥N½X

E.png (18.87 KB)

E.png

E.png (18.87 KB)

E.png

TOP

§Ú¤]¬O¤@¼Ëªº°ÝÃD ¥d¦bsend,½Ð°Ý¦p¦ó³B²z

TOP

¦^´_ 9# wufonna


§Ú¤]¬O¬Û¦P°ÝÃD¡A¨Ï¥ÎÀô¹ÒWin 7, MS Office 2010.
¦n¥i±¤¡A¥\¯à«Ü´Î¡A½Ð¤j¤j¨ó§U¡C

TOP

¦^´_ 2# Hsieh


    ½Ð°Ý ª©¥D¦p¤U¿ù»~¬O¦p¦ó¡AÁÂÁÂ

TOP

¬Ý°_¨Ó¬O¤@­Ó¦nª±ªº³nÅé~~
¸ü¨Óª±ª±

TOP

ÁÂÁª©¥D¤j¤j¡C
¤w´ú¸Õ¥i¥HÀ³¥Î¤F¡C
§Æ±æ­É¥Î¦¹¥\¯à¥i¥H
Åý¦Û¤wªº­^¤å¦³©Ò¶i¨B¡C

·P®¦¤j¤j¡I

TOP

¦^´_ 6# dechiuan999
2¼Ó    ºK¨úKK­µ¼Ð  ³o¦æµ{¦¡½X
          Rng.Offset(0, 1) = Left(VBA.Split(.responseText, "KK</span>  ")(1), InStr(VBA.Split(.responseText, "KK</span>  ")(1), "]"))
         ­×§ï¬°
         Rng.Offset(0, 1) = Split((Split(.responseText, "KK</span>")(1)), "<span>")(0)

TOP

¦U¦ì¤j¤j¦n¡G

    ¤S¦³¤@­Ó¾Ç²ß­^¤åªº
¦n¤u¨ã¡A¤p§Ì­n¦n¦n¦h¥[
¹B¥Î¡C¥i¬O¤p§Ì¦b¾Ç²ß¹Lµ{
¤¤¤@ª½µLªkÅã¥Ü¨ä­µ¼Ð¡C
½Ð°Ý¨ä­ì¦]¬°¦ó©O¡H

·P®¦¦U¦ì¤j¤j¡I

TOP

¦^´_ 2# Hsieh


    §Ú¬O·s·|­ûÁÙ¤£¯à¤U¸üÀɮסC¤p§Ì¤£¤~¡A½Ð°Ý³o¨Ç¥N½X­n¦p¦ó¨Ï¥Î?

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD