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

[µo°Ý] ½Ð°Ý¡G«ü©wÄæ¦ì¦³¸ê®Æ®É¡A½Æ»s¦Ü¨ä¥L¤u§@ªí¤¤

[µo°Ý] ½Ð°Ý¡G«ü©wÄæ¦ì¦³¸ê®Æ®É¡A½Æ»s¦Ü¨ä¥L¤u§@ªí¤¤

Dear ¦U¦ìExcel¥ý¶i,
§Ú¦³¤u§@ªí"¨BÆJ1"¤º¦³¬ÛÃö¸ê®Æ¡A¨ä¤¤¦bGÄæ¦ì"¼Æ¶q1"¤U¦³¥X²{¸ê®Æ(¼Æ¾Ú)®É¡A·Q­n§Q¥ÎVBA¦Û°ÊCOPY¨ì""¨BÆJ2"¤¤
·Q»P¦U¦ì½Ð±ÐVBA»yªk¡AÁÂÁ¤j®a¡I

¤u§@ªí-¨BÆJ1


¤u§@ªí-¨BÆJ1-GÄæ¦C¤U¦³¸ê®ÆªºÄæ¦C


·Q­n¦Û°Ê½Æ»s¨ì¤u§@ªí-¨BÆJ2


EXCEL-¿z¿ï.rar (13 KB)
Just do it.

¦^´_ 1# jsc0518


    ¤p§Ì¤£¤~¡A¥u·|³o¼Ë¼g¡A¤£ª¾¾A¤£¾A¦X¡C
  1. Sub ex()
  2. Dim f1, f2, f3 As Workbook
  3. Set f1 = Sheets("¨BÆJ1")
  4. Set f2 = Sheets("¨BÆJ2")
  5. f1.Select
  6. Application.ScreenUpdating = False
  7. For Each aa In Range([A2], [A2].End(xlDown))
  8. If aa.Offset(, 6) <> "" Then
  9.     f2.Select
  10.     NextRow = Cells(Rows.Count, 2).End(xlUp).Row + 1
  11.     Cells(NextRow, 2).Resize(1, 11) = aa.Offset(0, 0).Resize(1, 11).Value
  12. End If
  13. Next
  14. f1.Select
  15. Application.ScreenUpdating = True
  16. End Sub
½Æ»s¥N½X
¤@¤À§V¤O¡A¤@¤À¦¬Ã¬¡C
µo°ÝÃD«e¥i¥H¥ý·j¯Á¤º¤å¬O§_¦³¬ÛÃö½d¨Ò¡C

TOP

¦^´_ 2# faye59
±z¦n¡I¦­¦w¡A«D±`·PÁ±zªº¦^ÂÐ
­è­è°õ¦æ¤FVBA»yªk¡Aª¬ªp¬°·|±N¸ê®Æ½Æ»s¨ì¤u§@ªí"¨BÆJ1"(¸ê®Æ­n½Æ»s¨ì"¨BÆJ2")


¥t¥~¡A¦b"¨BÆJ1"HÄæ¦ì(¼Æ¶q2)¦³³]©w¤½¦¡¡A½Æ»s¹L¥h®É¡A¬O§_¤]¥i¥H¸òµÛ¹L¥h

§Ú¦Û¤v¦³¿ý»s¥¨¶°(¿z¿ïGÄæ¤U¦³¼Æ¾Ú¸ê®Æ«á¡A¦A¥ÎCOPYªº)¡A¦ý¬O¿ý»s¥¨¶°³£¬O½Æ»s¤@¼ËªºÄæ¦C¡AµLªk§PÂ_GÄ榳¸ê®Æ®É³£¬O½Æ»s¡A¬O§_¥i¥HÀ°¦£
Just do it.

TOP

¦^´_ 2# faye59
Hi ©êºp,­ì¨ÓVBA­n©ñ¦bThisWorkbook¤U
TEST OK
¦³°ÝÃD¦A¸ò±z»¡¡A«D±`·PÁ±z
Just do it.

TOP

        ÀR«ä¦Û¦b : ½_ÁJµ²±o¶V¹¡º¡¡A¶V·|©¹¤U««¡A¤@­Ó¤H¶V¦³¦¨´N¡A´N­n¶V¦³Á¾¨Rªº¯ÝÃÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD