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

[µo°Ý] ¤º½X§ä¤£¨ì aj ? §Ú¥i¯à©w¸q¿ù»~???

[µo°Ý] ¤º½X§ä¤£¨ì aj ? §Ú¥i¯à©w¸q¿ù»~???

³o¬O§Ú¤§«e©Ò°µªº«ö¼t®a¤Àµoªí , ¦]·~°È»Ý­n§Ú¼W³]¤F«Ü¦hÄæ¦ì  ¥i¬O¤£ª¾¬O¨º¨½­×§ï¿ù¤F  «oµLªk°õ¦æ ½Ð¦U¦ì°ª¤âÀ°¦£ ÁÂÁ «ö¼t®a¶i¦æ¤Àµo-6¤ë.rar (17.19 KB)
¤T¤d¦~Ū¥v, ¤£¥~¥\¦W§Q¸S, ¤E¸U¨½®©¹D, ²×Âk¸Ö°s¥Ð¶é

¦^´_ 6# owen06

·PÁ±z  ¤ñ§Ú¤§«e¨Ï¥Î±¡ªp§ó¦n  ÁÂÁÂ
¤T¤d¦~Ū¥v, ¤£¥~¥\¦W§Q¸S, ¤E¸U¨½®©¹D, ²×Âk¸Ö°s¥Ð¶é

TOP

¦^´_ 4# tomtracy

¤j¤j³o¼Ë°õ¦æµ²ªG¥¿½T¶Ü¡H
  1. Sub Macr4()

  2. On Error Resume Next

  3. Dim mySheetName As String
  4. mySheetName = ActiveWorkbook.ActiveSheet.Name

  5. For Each sht In ActiveWorkbook.Sheets
  6. Application.DisplayAlerts = False
  7. 'Ãö³¬Äµ§iµøµ¡
  8. If sht.Name <> mySheetName Then sht.Delete

  9. Application.DisplayAlerts = True
  10. '«ì´_ĵ§iµøµ¡
  11. Next sht


  12. With Sheets(mySheetName)
  13. .Columns("s:ah").ClearContents
  14. .Columns("C:C").AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range("R1"), Unique:=True
  15. End With

  16. Dim NameCount As Integer
  17. NameCount = Sheets(mySheetName).Range("R1").End(xlDown).Row - 1
  18. For ah = 1 To NameCount
  19. ActiveWorkbook.Sheets.Add after:=Worksheets(Worksheets.Count)
  20. ActiveSheet.Name = Sheets(mySheetName).Cells(ah + 1, 18)
  21. Next


  22. Dim myName As String
  23. Sheets(mySheetName).Select
  24. For aj = 1 To NameCount
  25. myName = Range("R2")
  26. MsgBox myName
  27. Columns("s:ah").ClearContents
  28. Columns("A:P").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
  29. "R1:R2"), CopyToRange:=Range("s1"), Unique:=False
  30. Columns("s:ah").Copy Sheets(myName).Range("A1")
  31. Range("R2").Delete Shift:=xlUp
  32. Next aj
  33. Sheets(mySheetName).Columns("s:ah").ClearContents
  34. End Sub
½Æ»s¥N½X

TOP

¨º¤j¤j·Q¹ê²{¤°»ò©O

TOP

§Ú¥h±¼aj §â End With´¡¤J ¥i¬O¤´¤£¯à¥¿½T°õ¦æ
¤T¤d¦~Ū¥v, ¤£¥~¥\¦W§Q¸S, ¤E¸U¨½®©¹D, ²×Âk¸Ö°s¥Ð¶é

TOP

¤j¤j§â aj ¥h±¼
End Sub ¤W­±´¡¶i¤@­Ó End With ´N¦n°Õ

TOP

¦^´_ 1# tomtracy


    §Afor ah = 1 To NameCount¤§«á¤U­±ªºnext ¤£À³¸Ó¬Oaj¡AµM«áwith§¹²¦¤§«á¤U­±¨S¦³±µend with

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD