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

[µo°Ý] ¿z¿ï°ÝÃD

[µo°Ý] ¿z¿ï°ÝÃD

¥»©«³Ì«á¥Ñ spermbank ©ó 2013-1-13 03:10 ½s¿è

¤j®a¦n:
      ¦bSheet1ªí¤¤¦³¥|Äæ¸ê®Æ¡A¦p¦ó³z¹LSheet2ªíªº¥N¸¹¹ïÀ³Sheet1ªíªº¥N¸¹¿z¿ï¥X¥|Äæ©Ò»Ý­nªº¸ê®Æ©O?
     ¨ä¤¤Sheet2ªíªº¥N¸¹¼Æ¥Ø¤£©T©w¡A¤£¤@©w4µ§¡A¦³®É¥i¯à«Ü¦hµ§¡A
      ¦]¬°¥N¸¹¼Æ¥Ø¤£©T©w¡A¤£ª¾¹D«ç»ò¼g¡A½Ð±Ð¤j®a¤@¤U¡AÁÂÁ¡C

test.rar (59.68 KB)

¦^´_ 5# spermbank
  1. Option Explicit
  2. Sub Ex_´M§ä()
  3.     Dim i As Integer, Rng As Range
  4.     Sheets("SHEET1").UsedRange.Offset(1).EntireRow.Hidden = True
  5.     i = 2
  6.     With Sheets("sheet2")
  7.         Do While .Cells(i, "a") <> ""
  8.             Set Rng = Sheets("SHEET1").Range("A:A").Find(.Cells(i, "a"), lookat:=xlWhole)
  9.             If Not Rng Is Nothing Then Rng.EntireRow.Hidden = False
  10.             i = i + 1
  11.         Loop
  12.     End With
  13. End Sub
  14. Sub ¥þ³¡Åã¥Ü_´M§ä()
  15.     Sheets("SHEET1").UsedRange.EntireRow.Hidden = False
  16. End Sub
½Æ»s¥N½X
  1. Option Explicit
  2. Sub Ex_¶i¶¥¿z¿ï()
  3.     Dim ·Ç«h½d³ò As Range
  4.      With Sheets("Sheet2")
  5.        Set ·Ç«h½d³ò = .Range(.[A1], .[A1].End(xlDown))
  6.     End With
  7.     Sheets("Sheet1").Columns("A:D").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=·Ç«h½d³ò, Unique:=False
  8. End Sub
  9. Sub ¥þ³¡Åã¥Ü_¶i¶¥¿z¿ï()
  10.     Sheets("Sheet1").Columns("A:D").AdvancedFilter Action:=xlFilterInPlace
  11. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# spermbank
¿ý»s¥¨¶°«á»P¤W­±ªº¥N½X¤ñ¸û´Nª¾¹D¸Ó«ç»ò¼g¤F
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¨â¦ì¤j¤j:
            §Ú·Q­nªº¬O³z¹LSheet2ªº¥N¸¹(¥N¸¹¼Æ¥Ø¤£©T©w¡A¤£¤@©w4²Õ¥N¸¹)¡A¨Ã¥B§âSheet1¬Û¹ïÀ³ªº¥N¸¹¤§4­ÓÄæ¦ì¸ê®Æ(¤w«ö¿z¿ïÁä)ª½±µ¿z¿ïÅã¥Ü´N¥i¥HÅo(­Y«ö²M°£¥i«ì´_Sheet1©Ò¦³¸ê®Æ)¡A¨Ã¤£»Ý­n±N4Äæ¦ì¸ê®Æ¿z¿ï«á½Æ»s¦ÜSheet2¡F
            ÁÙ¬O¤£ª¾¹D«ç»ò°µ¡AÀµ½Ð«ü±Ð¡AÁÂÁ¡C

TOP

¥»©«³Ì«á¥Ñ spermbank ©ó 2013-1-15 02:16 ½s¿è

¦^´_ 2# GBKEE


    ¨â¦ì¤j¤j:
            §Ú·Q­nªº¬O³z¹LSheet2ªº¥N¸¹¡A¨Ã¥B§âSheet1¬Û¹ïÀ³ªº¥N¸¹¤§4­ÓÄæ¦ì¸ê®Æª½±µ¿z¿ïÅã¥Ü´N¥i¥HÅo¡A¨Ã¥B¤£»Ý­n±N4Äæ¦ì¸ê®Æ¿z¿ï«á½Æ»s¦ÜSheet2¡F
            ÁÙ¬O¤£ª¾¹D«ç»ò°µ¡AÀµ½Ð«ü±Ð¡AÁÂÁ¡C

TOP

¦^´_ 1# spermbank

¶i¶¥¿z¿ï
  1. Sub Ex()
  2.     With Sheets("Sheet2")
  3.     .[D1].CurrentRegion.Clear
  4.     Sheets("Sheet1").Columns("A:D").AdvancedFilter Action:=xlFilterCopy, _
  5.         CriteriaRange:=.Range(.[A1], .[A1].End(xlDown)), CopyToRange:=.Range("D1"), Unique:=False
  6.     End With
  7. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 1# spermbank
  1. Option Explicit
  2. Sub Ex()
  3.     Dim i As Integer, Rng As Range
  4.     i = 2
  5.     With Sheets("sheet2")
  6.         Do While .Cells(i, "a") <> ""
  7.             Set Rng = Sheets("SHEET1").Range("A:A").Find(.Cells(i, "a"), lookat:=xlWhole)
  8.             If Not Rng Is Nothing Then .Cells(i, "a").Resize(, 4) = Rng.Resize(, 4).Value
  9.             i = i + 1
  10.         Loop
  11.     End With
  12. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ­×¦æ­nô½t­×¤ß¡AÂǨƽm¤ß¡AÀH³B¾i¤ß¡C
ªð¦^¦Cªí ¤W¤@¥DÃD