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

½Ð°Ý¦p¦ó±NDDEªÑ²¼¸ê®Æ¨Ì§Ç¶K¨ìsheet2

½Ð°Ý¦p¦ó±NDDEªÑ²¼¸ê®Æ¨Ì§Ç¶K¨ìsheet2

¥»©«³Ì«á¥Ñ Apple007 ©ó 2015-6-12 11:48 ½s¿è

½Ð°Ý¦U¦ì«e½ú¤j¤j,§Ú¦bsheet1ªºªÑ²¼¸ê®Æ,¨ä¤¤CÄ欰DDEÅܰʪº¦¨¥æ¶q,§Ú·Q±N²Ä¤@µ§¦¨¥æ¶qÅܰʤj©ó300±iªº¶ñ¤Jsheet2ªºB3Àx¦s®æ,²Ä¤Gµ§>300±iªº¤@¼Ë¶ñ¤JSheet2ªºB3Àx¦s®æ,¦ý²Ä¤@µ§¸ê®Æ©¹¤U²¾¦ÜB4Àx¦s®æ,¨Ì§Ç±N·sªº¦¨¥æ¶qÅܰʸê®Æ¶ñ¤JB3Àx¦s®æ,¨ä¥¦¸ê®Æ©¹¤U²¾;¦p¹Ï²Ä¤@µ§¸ê®Æ¬°¸s³Ð,²Ä¤Gµ§¸ê®Æ¬°¥x¿n¹q,²Ä¤Tµ§¸ê®Æ¬°µØ¨È¬ì,²Ä¥|µ§¸ê®Æ¬°¸s³Ð,²Ä¤­µ§(³Ì·s¤@µ§)¸ê®Æ¬°ÂE®ü,½Ð±Ð¦U¦ì«e½ú;ÁÂÁÂ!

½Ð°Ý¦U¦ì«e½ú¤j¤j,§Ú¦bsheet1ªºªÑ²¼¸ê®Æ,¨ä¤¤CÄ欰DDEÅܰʪº¦¨¥æ¶q,§Ú·Q±N²Ä¤@µ§¦¨¥æ¶qÅܰʤj©ó300±iªº¶ñ¤J ...
Apple007 µoªí©ó 2015-6-12 11:46
  1. Sub nn()
  2.   Dim lSRow&
  3.   Dim wsSou As Worksheet, wsTar As Worksheet
  4.   
  5.   lSRow = 2
  6.   Set wsSou = Sheets("Sheet1")
  7.   Set wsTar = Sheets("Sheet2")
  8.   With wsSou
  9.     While .Cells(lSRow, 1) <> ""
  10.       If .Cells(lSRow, 3) > 300 Then
  11.         .Range(.Cells(lSRow, 1), .Cells(lSRow, 3)).Copy
  12.         wsTar.[B3].Insert Shift:=xlShiftDown
  13.       End If
  14.       lSRow = lSRow + 1
  15.     Wend
  16.   End With
  17. End Sub
½Æ»s¥N½X

TOP

¦^´_ 2# luhpro


¤j¤j§A¦n:1.§Ú¦b´ú¸Õ«á¿é¤J¸ê®Æ·|¿ù¶Ã,³Ì·s¤@µ§¸ê®Æ¦³®É¤£·|¦bSheet2ªºB3®æ,¦³®É·|´¡¤J¨ì¨ä¥L®æ.2.µ{¦¡»Ý­n¤â°Ê°õ¦æ,¥i§_§ï¦¨¦Û°Ê¿é¤J¼Æ­È«á´N°õ¦æ,ÁÂÁ¤j¤j

TOP

        ÀR«ä¦Û¦b : ¯¸¦b¥b¸ô¡A¤ñ¨«¨ì¥Ø¼Ð§ó¨¯­W¡C
ªð¦^¦Cªí ¤W¤@¥DÃD