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

[µo°Ý] ®Ú¾Ú"®Æ¸¹Äæ"¬°¨Ì¾Ú,°µ±Æ§Ç

¦^´_ 15# °a¤ªºµ
ºµ¤j¦n,
§Ú§âµ{¦¡µy§@­×§ï,¥H«K¶¶À³§Ú¥­¤é¥¿¦¡ÀÉ,µ{¦¡»P°õ¦æ³øªí¬O¤À¶}ªº,¦ý­×§ï«áµ{¦¡´N°±¦b
b = xB.Sheets(a3).[a1].SpecialCells(xlCellTypeConstants, 23).Column
µLªk°õ¦æ,½ÐÀ°¦£¬Ý¬Ý¡I
R0413_1.rar (414.14 KB)

TOP

¦^´_ 14# PJChen
§Ú¤]¤£ª¾¹D F5 ªº°ÝÃD >"<     ¦³ªÅ¦bÀ°§Ú¸Õ¸Õ¬Ý ÁÙ¦³¨S¦³°ÝÃD ·PÁÂ

R0413_1.rar (402.34 KB)

TOP

¦^´_ 13# °a¤ªºµ

ºµ¤j¦n,

1) ¦L½LÂIªí...³o­Ó¤u§@ªí§¹¥þµLªk±Æ§Ç,§Ú·Q¬O¦]¬°²Ä¤@Äæ¬OªÅ¥Õ,¦b²Ä¤@Äækey¤J¬Y¨Ç¼Æ¦r«á,´N¥i¥H¥¿±`±Æ§Ç,¤£ª¾³o­Ó¯à°÷§JªA¶Ü?¦pªG¤£¦æ,´N¤£§ïµ{¦¡¤F¡I
2) ¥t¥~,µL·N¤¤µo²{­Y¦bµ{¦¡¤¤«öF5,«hµ{¦¡¤]¤£¯à±Æ§Ç,¦ý«ö"sorting"Áä®É«h¥i±Æ§Ç,¤£ª¾­ì¦]¡H

TOP

¦^´_ 12# PJChen

§ï¦n¤F ¦³ªÅ¦A¬Ý¬Ý¬O¤£¬O§A­nªºµ²ªG ·PÁÂ
R0413.rar (401.45 KB)

TOP

¦^´_ 11# °a¤ªºµ
ºµ¤j¦n,
§Ú±N¥Ø«e¥i¯à·|»Ý­n±Æ§Çªº¤u§@ªí³£©ñ¤J¤@¨Ö´ú¸Õ,¦p¤U:
1) ©Ò¦³¤u§@ªí,±Æ§Çªº¸ê®Æ¤U¥b³¡¤£¥¿½T
2) ¤u§@ªí§ó§ï¹LªíÀY(§âªíÀY½d³ò¥[¤j),±Æ§Ç´N§ó¤£¥¿½T

R0412.rar (393.09 KB)

TOP

¦^´_ 10# PJChen

§Ú¦³­×§ï¹L¤F  ¦³ªÅ¦AÀ°§Ú¸Õ¸Õ¬Ý ¦æ¤£¦æ ·PÁÂ

RR0412.rar (300.22 KB)

TOP

¦^´_ 9# °a¤ªºµ
¤£¦n·N«ä,±Æ§ÇÁÙ¬O·|¥X¿ù,
"¾ã¤ë²Î­p"ªºªíÀY­ì¨Ó¦b²Ä3¦C,¬°¤F´ú¸Õ¥Î§Ú§â¤W¤èÀH·N¼W´îªÅ¥Õ¦C,²{¦bªíÀY©ñ¦b²Ä6¦C,
µ²ªG¤£¦ý±Æ¦C¿ù»~,¦Ó¥B·|±N­ì¨ÓªºªíÀY²Ä2¦C,²¾°Ê¨ì¤U¤è....
¦b°»´ú"®Æ¸¹"ªº©Ò¦b¦ì¸m®É,±q®Æ¸¹©¹¤Wªº©Ò¦³¦C¼Æ,³£ÄÝ©óªíÀY¦ì¸m,¤£¯à¦C¤J±Æ§Ç½d³ò,
¤£µMªí®æ·|¤j¶Ã....¦A³Â·Ð±z¤F.
RR0409.rar (300.39 KB)

TOP

¦^´_ 8# PJChen


§Ú¥H¬°§A­n­«·s±Æ¦C ©Ò¥H¤~·|¥[¤J³o¬q
    '·s¼W¤@­Ó¤u§@ªí±Æ¦C«á ¦s¨ì°}¦C¦b§R°£¤u§@ªí
§â³o¨Ç§R°£¦A¸Õ¸Õ¬Ý ¬O¤£¬O§A­nªºµ²ªG ·PÁÂ
'    Sheets.Copy After:=Sheets(Sheets.Count)
'    Range([A65535].End(3), [A4]).Sort [A4], 1, Header:=2

    Set xD = CreateObject("Scripting.Dictionary")
    Arr = Range([A65535].End(3), [A1])
   
'    Application.DisplayAlerts = False
'    Sheets(Sheets.Count).Delete
'    Application.DisplayAlerts = True

«O¯d
    Set xD = CreateObject("Scripting.Dictionary")
    Arr = Range([A65535].End(3), [A1])

TOP

¦^´_ 7# °a¤ªºµ

ºµ¤j¦n,
¤ÏÂдú¸Õ,¥¦ÁÙ¬OµLªk¥¿½T±Æ§Ç,§Ú§â¥¿½T¤Î¿ù»~ªº±Æ¦C³£¯d¦bÀɮפ¤,
½Ð¦AÀ°¦£¬Ý¤U....
R0409.rar (423.95 KB)

TOP

¦^´_ 6# PJChen

¦³ªÅ¦AÀ°§Ú¸Õ¸Õ¬Ý¬O¤£¬O§A­nªºµ²ªGÁÂÁÂ
  1. Public Sub ¸ó¤u§@ï¤ñ¹ï¨Ã²¾°Ê½m²ß0409()
  2.     Application.ScreenUpdating = False
  3.     '·s¼W¤@­Ó¤u§@ªí±Æ¦C«á ¦s¨ì°}¦C¦b§R°£¤u§@ªí
  4.     Sheets.Copy After:=Sheets(Sheets.Count)
  5.     Range([A65535].End(3), [A4]).Sort [A4], 1, Header:=2

  6.     Set xD = CreateObject("Scripting.Dictionary")
  7.     Arr = Range([A65535].End(3), [A1])
  8.    
  9.     Application.DisplayAlerts = False
  10.     Sheets(Sheets.Count).Delete
  11.     Application.DisplayAlerts = True
  12. '--------------------------------------------------------
  13.     '§â±Æ¦C«áªº¸ê®Æ¦s¨ì¦r¨å¸Ì
  14.     For X = 1 To UBound(Arr, 1)
  15.         xD(Arr(X, 1)) = Trim(xD(Arr(X, 1)) & " " & X)
  16.     Next X
  17.     Erase Arr
  18. '--------------------------------------------------------
  19.     '´M§äÀɮתº¦ì¸mµM«á¶}±Ò
  20.     A = Dir(ThisWorkbook.Path & "\" & "*.xlsx")
  21.     Workbooks.Open ThisWorkbook.Path & "\" & A
  22. '--------------------------------------------------------
  23.     '¤Á´«¨ì«ü©w¤u§@ªí §â§t¦³"®Æ¸¹"ªº¨º¤@Äæ¦ì¸m°O¤U¨Ó
  24.     Sheets("¾ã¤ë²Î­p").Activate '³o¸Ì¥i¥H«ü©w­n±Æ¦Cªº¤u§@ªíªº¦ì¸m "¾ã¤ë²Î­p" ©Î "3"
  25.     Arr = ActiveSheet.UsedRange
  26.     For X = 1 To UBound(Arr, 1)
  27.         For Y = 1 To UBound(Arr, 2)
  28.             If Arr(X, Y) = "®Æ¸¹" Then
  29.                 Y = Y
  30.                 X = X + 1
  31.                 GoTo A01
  32.             End If
  33.         Next Y
  34.     Next X
  35. A01: Erase Arr
  36. '--------------------------------------------------------
  37.     '´M§ä¤ñ¹ï«á¨Ã­«·s±Æ¦C
  38.     For Each D In xD
  39.         SR = Split(xD(D), " ")
  40.         For Each S In SR
  41.             If D = Empty Then Exit For
  42.             With Range(Cells(1, Y), Cells(Rows.Count, Y).End(3))
  43.                 On Error Resume Next
  44.                 Set C = .Find(D)
  45.                 G = .FindNext(C).Address
  46.                 If C = D Then
  47.                     If Not C Is Nothing Then
  48.                         Rows(C.Row).Cut
  49.                         Set C = .FindNext(G)
  50.                         K = K + 1
  51.                         Rows(X + K).Insert , 1
  52.                     End If
  53.                 End If
  54.                 Application.CutCopyMode = False
  55.                 On Error GoTo 0
  56.             End With
  57.         Next S
  58.     Next D
  59.     Set C = Nothing
  60.    
  61.     Application.ScreenUpdating = True
  62. End Sub
½Æ»s¥N½X
0409.rar (287.7 KB)

TOP

        ÀR«ä¦Û¦b : ¡i¦æµ½­n¤Î®É¡j¦æµ½­n¤Î®É¡A¥\¼w­n«ùÄò¡C¦p¿N¶}¤ô¤@¯ë¡A¥¼¿N¶}¤§«e¤d¸U¤£­n°±º¶¤õ­Ô¡A§_«h­«¨Ó´N¤Ó¶O¨Æ¤F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD