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

¤Wºô¬d­µ¼Ð­^­^¸ÑÄÀ

¦^´_ 3# brianhau
·s¼W·sªºModule¡A¶K¤W2# code
¤u§@ªí A1 ¶ñ§A­n¬dªº¦r
            B1 ¶ñ =dictionary_oxford(A1)

ºô­¶Â^¨ú¬ÛÃöªº´Nºâ¬O¶i¶¥®Ñ¤]¤£·|±Ð§Aªº
¤Jªù®Ñ¨ì®Ñ©±Â½Â½¬Ý¾A¦X¦Û¤vµ{«×ªº·|¤ñ¸û¦n¡C
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

¦^´_ 2# stillfish00

ÁÂÁ«e½ú«ü¾É
§Ú¬ã¨s¤F¤@¤U
¤´¥X²{³o¼Ëªº¿ù»~°T®§

½Ð°Ý§Ú­þ¸Ì°µ¿ù¤F¶Ü¡H
dict Eng.zip (15.72 KB)
ªþ¥ó¬O§Ú¬ã¨s«áªºµ²ªG¡A½Ð«e½ú«ü¾É¡C

½Ð°Ý¥i§_±ÀÂËVBªº¤Jªù®ÑÄy¡H¸Õ¿ù«áı±o«Ü¦³½ì·QÁA¸Ñ¡AÁÂÁ¦U¦ì«e½ú¡C

TOP

¦^´_ 1# brianhau
¥Î¿ùªºµ{¦¡½X¥X²{¤FVB½s¿è¾¹
³o¼Ë§Ú·ÓµÛ¸Õ¸Õ¡A¦¨¥\¤F

1.  ÀÉ®×>¿ï¶µ>¦Û­q¥\¯à°Ï¤Ä¿ï¶}µo¤H­û¡A¥H«á´N¦³«ö¶sª½±µ¶i¥h¤F...
©Î¬O§Ö³tÁä Alt+ F11
   
2.  ¨C­Óºô­¶³£¬O¤£¤@¼Ëªº¡A­ìµ{¦¡¬O°w¹ï©_¼¯¦r¨åªººô­¶¤ÀªRÂ^¨úµ²ªGªº¡A§A¥u´«ºô§}¡A¤ÀªRÅÞ¿è³£¨SÅÜ·íµM¤£¯à¥Î...

3.  ­^­^¦r¨åªº¦Û­q¨ç¼Æ
  1. Private oxmlhttp As Object
  2. Private ohtml As Object
  3. Function dictionary_oxford(word As String)
  4.     Dim colNodes As Object, bFound As Boolean
  5.         
  6.     If oxmlhttp Is Nothing Then Set oxmlhttp = CreateObject("msxml2.xmlhttp")
  7.     If ohtml Is Nothing Then Set ohtml = CreateObject("htmlfile")
  8.    
  9.     With oxmlhttp
  10.         .Open "get", "http://www.oxfordlearnersdictionaries.com/definition/english/" & word, False
  11.         .send
  12.         ohtml.body.innerhtml = .responsetext
  13.         
  14.         '<span class="def" ...
  15.         Set colNodes = ohtml.getElementsByTagName("span")
  16.         For Each x In colNodes
  17.             If x.className = "def" Then bFound = True: dictionary_oxford = x.innerText: Exit For
  18.         Next
  19.         If Not bFound Then dictionary_oxford = "# Not Found #"
  20.     End With
  21. End Function
½Æ»s¥N½X
ªí¹F¤£²M¡BÃD·N¤£©ú½T¡B¨SªþÀɮ׮榡¡B¨S¦³°Q½×°ÝÃDªººA«×~~~~~~¥H¤W·R²ö¯à§U¡C

TOP

        ÀR«ä¦Û¦b : ¸Ü¦h¤£¦p¸Ü¤Ö¡A¸Ü¤Ö¤£¦p¸Ü¦n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD