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

¦Û¿ïªÑ¼Æ¶q§ó§ï®Éµ{¦¡«K¦³°ÝÃD

¦^´_ 1# chairles59
°£¤F c_c_lai ´£¨Ñ¤£­n 'Selection.Delete shift:=xlUp

   
·í§ÚªºªÑ²¼¥N½X¼Æ¶q¦³Åܧó®É
¦bµ{¦¡
If Cells(i, 5) <> "" Then  
³o­Ó¦a¤è¸g±`·|¥d¦í

·í Cells(i, 5)="" ®É¤£¬d¸ß¸ê®Æ
©Ò¬d¸ßªº¸ê®Æ¨Ìi ªº°j°é¦s©ñ,¦ü¥G¤£·í.
  1. lR = Range("A2").End(xlDown).Row  'aÄæªÅ¥Õ¥H¤U¥þ§R°£
  2. Rows(lR + 1 & ":400").Clear 'Selection.Delete shift:=xlUp
  3. lra = Range("c2").End(xlDown).Row  '¶R¶i¤é´Á³Ì«á¤@Äæ
  4. For i = 3 To lra
  5.     If Cells(i, 5) <> "" Then          '¦³ªÑ²¼¼Æ¿é¤J¤~¦A·j´M
  6.         Valuesno = "$A$" & i
  7.         Linkss = "URL;https://tw.stock.yahoo.com/q/q?s=" & Cells(i, 1)  'linkss¦r¦ê
  8.         po = lR + 3 + (8 * x)  '©w§ì¨ú¸ê®Æªí®æ°j°é¦b²Ä16¦C¶}©l©ñ¤J¸ê®Æ
  9.         x = x + 1     '****'±Æ°£¤£¬d¸ß¸ê®Æªº¦¸¼Æ****
  10.         With ActiveSheet.QueryTables.Add(Connection:=Linkss, Destination:=ActiveSheet.Range("b" & po))
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¤â¤ß¦V¤U¬O§U¤H¡A¤â¤ß¦V¤W¬O¨D¤H¡F§U¤H§Ö¼Ö¡A¨D¤Hµh­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD