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

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

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

½Ð°Ý¦U¦ì¤j¤j:
·í§ÚªºªÑ²¼¥N½X¼Æ¶q¦³Åܧó®É
¦bµ{¦¡
If Cells(i, 5) <> "" Then  
³o­Ó¦a¤è¸g±`·|¥d¦í
­n¤£µM´N¬OAÄæ·|¦Û°Ê©¹¤W²¾¤@®æ
½Ð°Ýµ{¦¡­þÃ䦳°ÝÃD

ÁÂÁÂ

ªÑ²¼ªÑ²¼.rar (124.52 KB)

michael

ÁÂÁ¨â¦ì¤j¤j
¸g¹L´ú¸Õ§¹¥þ¨S¦³°ÝÃD

¥u¬O¹ï   
    po = lR + 3 + (8 * x)  '©w§ì¨ú¸ê®Æªí®æ°j°é¦b²Ä16¦C¶}©l©ñ¤J¸ê®Æ

        x = x + 1     '****'±Æ°£¤£¬d¸ß¸ê®Æªº¦¸¼Æ****
³o­Ó¤£¬O«ÜÀ´
michael

TOP

ÁÂÁ¨â¦ì¤j¤j¼ö¤ßªº¸Ñ»¡
¦]¬°§Ú¬O·s¤â
»ÝºCºC¦a®ø¤Æ
michael

TOP

¦^´_ 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

¦^´_ 1# chairles59

TOP

¦^´_ 1# chairles59
  1. lR = Range("A2").End(xlDown).Row  'aÄæªÅ¥Õ¥H¤U¥þ§R°£
  2. Rows(lR + 1 & ":400").Clear
  3. Selection.Delete shift:=xlUp
½Æ»s¥N½X

µ²½×¬O±N Selection.Delete shift:=xlUp
±N¥¦ Remark °_¨Ó¡A¬J¤w²M°£¤U­±¤º®e¡A
¦ó¶·¦A Delete shift:=xlUp¡A¦óªp§Aªº
Selection ¬O«ü Sheet1 ¦Ó«D
Rows(lR + 1 & ":400")¡C
  1. lR = Range("A2").End(xlDown).Row  'aÄæªÅ¥Õ¥H¤U¥þ§R°£
  2. Rows(lR + 1 & ":400").Clear
  3. '  Selection.Delete shift:=xlUp
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¤Hªº²´·úªø¦b«e­±¡A¥u¬Ý¨ì§O¤Hªº¯ÊÂI¡Aµ·²@¬Ý¤£¨ì¦Û¤vªº¯ÊÂI¡C
ªð¦^¦Cªí ¤W¤@¥DÃD