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

ºô­¶¸ê®ÆÂà¨ìexcelªº°ÝÃD

ºô­¶¸ê®ÆÂà¨ìexcelªº°ÝÃD

·í§âºô­¶ªº¸ê®Æcopy¨ìexcel®É¨C¤@¦æ·|Åܦ¨¤@®æ¸ê®Æ
§Ú·QÅý©Ò¦³¸ê®Æ¥H­ì¨Óªº¼Ë¤l¶K¦b¦P¤@­ÓÀx¦s®æ ¸Ó¦p¦ó°µ©O

§Úªºµ{¦¡½X¦p¤U
Sub IE()
    Dim myhr
    Dim IEbrowser As Object
    Set IEbrowser = CreateObject("InternetExplorer.Application")
   
    myhr = "http://tw.yahoo.com/"
   
   With IEbrowser
     .navigate myhr
     Do While .busy
         DoEvents
     Loop

     .document.execCommand "SelectAll", False
     .document.execCommand "Copy", False

     With Worksheets("Sheet1")
       .Range("A" & .[A65536].End(3).Row + 1).Select
       .Paste
     End With

      .Quit
    End With
  Set IEbrowser = Nothing
End Sub

¶®ªê­º­¶¯àcopy¤°»ò¸ê®Æ¡H
ºô­¶ªº§G§½¤£¬Oexcel¯à³Ó¥ôªº
µLªk°µ¨ì¦b¤u§@ªí¤W«O«ù¸Ó­º­¶­ì¼Ë¡C
§A¥i¥H¹Á¸Õ¤å¦rªí®æªººô­¶¡C

TOP

¥»©«³Ì«á¥Ñ miketyc33 ©ó 2011-8-3 18:26 ½s¿è

yahoo¥u¬OÁ|¨Ò, §Úªº·N«ä¬O»¡ ¦p©Ò§â©Ò¦³ªº¸ê®Æ³£copy¨ì¦P¤@­ÓÀx¦s®æ ´N¬O©Ò¦³ªº¤å¦r³£¦b¦P¤@®æ...
ªí®æcopy¹L¨Ó´N¤@®æ¤@­Ó¸ê®Æ..
§Ú­n©Ò¦³¸ê®Æ³£¶K¦b¦P¤@®æ...
´N¹³¶}IE¨ìºô­¶¥þ¿ï
µM«á¨ìexcelªº¸ê®Æ®æÂI¨â¤U«á¶K¤W¤@¼Ë...¥þ³¡ªº¸ê®Æ³£¦b¦P¤@®æ..

TOP

«Øij§A¦h¬Ý¬Ý«e­±ªº½d¨Ò¡A¦³³\¦h¾e¨úºô­¶¸ê®Æªº¤èªk¥i¥Î¡C

TOP

«Øij§A¦h¬Ý¬Ý«e­±ªº½d¨Ò¡A¦³³\¦h¾e¨úºô­¶¸ê®Æªº¤èªk¥i¥Î¡C
oobird µoªí©ó 2011-8-3 20:07

­Y¬O³æ¯Â¥þ¿ï½Æ»s¶K¤W¡A°Ñ¦Ò¬Ý¬Ý
  1. Sub nn()
  2. '½Ð¥ý³]©w¤Þ¥Î¶µ¥ØMicrosoft Internet Controls
  3. Dim MyIE As InternetExplorer
  4. Set MyIE = CreateObject("InternetExplorer.Application")
  5. With MyIE
  6. .Navigate "http://forum.twbts.com/thread-4238-1-1.html" '¿é¤Jºô§}
  7. .Visible = True
  8. Do Until .ReadyState = READYSTATE_COMPLETE: Loop
  9. .ExecWB OLECMDID_SELECTALL, OLECMDEXECOPT_DODEFAULT
  10. .ExecWB OLECMDID_COPY, OLECMDEXECOPT_DODEFAULT
  11. .Quit
  12. End With
  13. DoEvents
  14. Sheet1.Select
  15. Sheet1.[A1].Select
  16. Application.Wait Now + TimeValue("00:00:01")
  17. SendKeys ("{F2}")
  18. SendKeys ("^v")
  19. SendKeys ("^~")
  20. DoEvents
  21. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

·PÁ °ÝÃD¸Ñ¨M¤F ­ì¨ÓÁÙ¥i¥H¥Î°eÁä½L­È¨Ó¶i¦æ.....·PÁ«ü¾É..

TOP

        ÀR«ä¦Û¦b : ¦n¨Æ­n´£±o°_¡A¬O«D­n©ñ±o¤U¡A¦¨´N§O¤H§Y¬O¦¨´N¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD