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

[µo°Ý] ½Ð°Ý¦³¤H¯àÀ°¦£¸Ñµª¶Ü?¨ç¼Æ¤½¦¡¸Ó¦p¦ó¼g©O?

¦^´_ 11# GBKEE

¦^³øª©¥D GBKEE¤j¤j

EX   ©ñ¦b book1 ·|¥X²{¿ù»~°T®§
          book2 ·|¥X²{¿ù»~°T®§
      
EX1  ©ñ¦b book1 ¥i¥H°õ¦æ¡A¦ý¥X²{ªºµ²ªG©Ç©Çªº»¡~

   
ÁÂÁÂ~ ª©¥D GBKEE¤j¤jªº¼ö¤ß¦^ÂÐ^^

TOP

¦^´_ 12# alltest
EX   ©ñ¦b book1 ·|¥X²{¿ù»~°T®§          book2 ·|¥X²{¿ù»~°T®§
§Aªº book1,book2 ¤W¶Ç¬Ý¬Ý.
EX1  ©ñ¦b book1 ¥i¥H°õ¦æ¡A¦ý¥X²{ªºµ²ªG©Ç©Çªº»¡~
¦p¦ó©Ç©Ç, ½Ð»¡¬Ý¬Ý.

TOP

¦^´_ 13# GBKEE


    ³ø§i:ª©¥D¤j¤j~

        EX1  ©ñ¦b book1 °õ¦æ«á ¥u¥X²{«e¥|¶µÄæ¦ì

        ªþ¤Wbook1 & book2 À£ÁYÀÉ,¨Ñª©¥D¤j¤j°Ñ¦Ò

        ¦A¦¸ÁÂÁª©¥D GBKEE¤j¤jªº¼ö¤ßÀ°¦£~·P®¦^^
      
            book.rar (21.58 KB)

TOP

¥»©«³Ì«á¥Ñ GBKEE ©ó 2012-12-28 07:59 ½s¿è

¦^´_ 14# alltest
EX   ©ñ¦b book1 ·|¥X²{¿ù»~°T®§        book2 ·|¥X²{¿ù»~°T®§
¦p¹Ï :  book2 ¤u§@ªí¦WºÙ¿ù»~





      
EX1  ©ñ¦b book1 ¥i¥H°õ¦æ¡A¦ý¥X²{ªºµ²ªG©Ç©Çªº»¡~

¦p¹Ï book1 ½Ð·s¼W¤@¤u§@ªí ©R¦W¬° : "ªíÀY"





­×§ï Sub Ex1() ¦p¤U
  1. Sub Ex1() '·s¼W¬¡­¶Ã¯
  2. Dim E As Variant, r As Integer, xi As Integer, xC As Integer
  3. Dim Rng(1 To 2), Wb As Workbook
  4. Set Wb = Workbooks.Add(1) '·s¼W¬¡­¶Ã¯
  5. With Workbooks("book1.xls").Sheets("²§±`©ú²Ó")
  6. .AutoFilterMode = False
  7. xC = .Cells(1, .Columns.Count).End(xlToLeft).Column
  8. For Each E In Array("¶À¦â", "¬õ¦â", "«C¦â")
  9. .Range("A2", .UsedRange.SpecialCells(xlCellTypeLastCell).Address).AutoFilter Field:=2, Criteria1:=E
  10. xi = .Cells(Rows.Count, 2).End(xlUp).Row
  11. For r = 5 To xC Step 3
  12. Set Rng(1) = .Range("b3:d" & xi)
  13. Set Rng(2) = .Range(.Cells(3, r).Resize(, IIf(r < xC - 1, 3, 2)).Address & ":" & .Cells(xi, r + IIf(r < xC - 1, 2, 1)).Address)
  14. Set Rng(1) = Union(Rng(1), Rng(2))
  15. Wb.Sheets.Add(, Sheets(Sheets.Count)).Name = E & "-" & .Cells(1, r) '·s¼W¤u§@ªí:©R¦W
  16. With ActiveSheet
  17. If r < xC - 1 Then
  18. Workbooks("book1.xls").Sheets("ªíÀY").[A1].CurrentRegion.Copy .[A1]
  19. 'book1 ½Ð·s¼W¤@¤u§@ªí ©R¦W¬° : "ªíÀY"
  20. Else
  21. Workbooks("book1.xls").Sheets("ªíÀY").[A4].CurrentRegion.Copy .[A1]
  22. End If
  23. Rng(1).Copy ActiveSheet.[A3]
  24. End With
  25. Next
  26. Next
  27. .AutoFilterMode = False
  28. End With
  29. Wb.Sheets(1).Move After:=Wb.Sheets(Wb.Sheets.Count)
  30. Wb.Sheets(1).Activate
  31. End Sub
½Æ»s¥N½X

TOP

¦^´_ 15# GBKEE


    ³ø§i ª©¥D¤j¤j: EX ¤w¸g´ú¸ÕOK~«D±`·P¿E^^ (ª©¥D¯u¬O¤Ó±j¤F~)
                        ¥t¥~,EX1 §ÚÁÙ¬O¬O¤£¥X¨Ó»¡,¤]¸g«ö·Óª©¥D¤j¤jªº«ü¥Ü­×§ï
                 ÁÙ¬O¬O¤£¥X¨Ó­C~

·Ð½Ðª©¥D¤j¤j,¦A¼ö¤ßÀ°¦£¬Ý¬Ý§Ú¨º¨à°µ°µ¿ù¤F©O?~ÁÂÁ±z

ªþ¤W­×§ï«áªºÀɮצp¤U:

book´ú¸Õ¤¤.rar (26.05 KB)

TOP

¦^´_ 15# GBKEE


    ¤£¦n·N«ä,¤£¤p¤ß§âª©¥D¤j¤jªºÃö¤ß¨ú®ø¤F( «ö¿ù¤F,sorry ..... ^^~ )
    ÁٽЪ©¥D¤j¤j¦h¦hÆ[·Ó¤@¤U~·P¿E~·P®¦!

TOP

¦^´_ 16# alltest
¦^´_ 15# GBKEE
  1. xi = .Cells(Rows.Count, 2).End(xlUp).Row
½Æ»s¥N½X
­×§ï¦¨¡G
  1. xi = .Cells(.Rows.Count, 2).End(xlUp).Row
½Æ»s¥N½X
«K OK ¤F¡I
(  Rows.Count  ---->  .Rows.Count )

TOP

¦^´_ 18# c_c_lai
«K OK ¤F¡I (  Rows.Count  ---->  .Rows.Count )
¨Ï¥Î2003(¦Ñª©¥»)§Ñ°O¤F,2007ª©(§t)¥H¤W Rows.Count , ¥²»Ý¦p¦¹ . .Rows.Count

TOP

¦^´_ 18# c_c_lai


    ÁÂÁ±zªº¼ö¤ß¸Ñµª~
    ¤£¦n·N«ä§Úªº¬O2002¦Ñª©¥»
   ÁÙ¬OµLªk°õ¦æ
   °õ¦æ«á¦p¤U
   

TOP

¦^´_ 19# GBKEE


    ÁÂÁª©¥D¤j¤jªº¼ö¤ß¦^ÂÐ~
    ¤£¹L,¤£¦n·N«ä~
    §Úªº¬O2002¦Ñª©¥»
   ÁÙ¬OµLªk°õ¦æ
   °õ¦æ«á¦p¤U

TOP

        ÀR«ä¦Û¦b : ¤Ó¶§¥ú¤j¡B¤÷¥À®¦¤j¡B§g¤l¶q¤j¡A¤p¤H®ð¤j¡C
ªð¦^¦Cªí ¤W¤@¥DÃD