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

[µo°Ý] ¬d¸ß²£«~¼Æ¶q

DEAR GBKEE ª©¤j:
§Ú¦b ªü¬ü®w¦sªí¤¤ ¥[¤J ¬d¸ß¥\¯à
¬°¨ç¼Æ§ï¬° VBAµ{¦¡

¦p¦ó §ï¦¨ VBA µ{¦¡
±N ¤U©Ô¦¡¿ï³æªº ¬d¸ß¤½¥q ­«ÂЪº ¤£Åã¥Ü¥X¨Ó , ¨Ã²Î­p ¥X³f¼Æ¶q »P ¶i³f¼Æ¶q ªºÁ`¦X

ÁÂÁÂ

¦pªþ¥ó

¶i¥X³fªí³æ¤ÀÃþ1008.rar (23.31 KB)

owen

TOP

¤j¤j
§Ú§ä¥X¨Ó¤F
¦p¦ó¦b ¶i³fªí ¤¤ , «ö¤@¤U ªü¬ü®w¦sªí ´N¨q¥X¨Ó

«ü¥O:
Sheet2.Activate
owen

TOP

¥»©«³Ì«á¥Ñ owen9399 ©ó 2013-10-8 11:15 ½s¿è

¦^´_ 35# GBKEE


    dear ¤j¤j:
   ½Ð°Ý¤@¤U ¦p¦ó¦b ¶i³fªí ¤¤ , «ö¤@¤U ªü¬ü®w¦sªí ´N¨q¥X¨Ó

  ÁÂÁÂ
owen

TOP

¦^´_ 34# owen9399
¶i¨B¦n¦h,Æg.
  1. Private Sub CommandButton3_Click()
  2.     Dim y
  3.     Dim Joken3 As String
  4.     Joken3 = "¤p¤ý"
  5.     If Joken3 = "" Then Exit Sub
  6.     With Sheets("¶i³fªí")
  7.         '­Y¦b¿z¿ï¤¤¡A¥ý¸Ñ°£Åã¥Ü¥þ³¡
  8.         If .FilterMode Then .ShowAllData
  9.         '¥H¡e²Ä5Äæ¡D·~°È­û¡f¶i¦æ¿z¿ï
  10.         .[A1].AutoFilter Field:=5, Criteria1:=Joken3
  11.         '¨ú±o¿z¿ï«á¡A³Ì«á¤@µ§¸ê®Æªº¡e¦C¸¹¡f
  12.         y = .[A65536].End(xlUp).Row
  13.         '¶i¦æ¶KÂà¸ê®Æ
  14.         .Range("A1:F" & y).Copy [¤p¤ýÁ`®w¦s!A1]
  15.         '¦A«ì´_¥þªí
  16.         .ShowAllData
  17.         '¨ú®ø[¦Û°Ê¿z¿ï] ¤U©Ô½b¸¹
  18.         .[A1].AutoFilter
  19.         MsgBox [SUM(¤p¤ýÁ`®w¦s!F:F)]  '¿z¿ï«áªº¥[Á`
  20.   End With
  21.   Beep
  22. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 33# GBKEE


    Dear ¤j¤j :

   §Ú¦³°µ¥X ³¡¥÷ªº¿z¿ï «ö ªü¬üÁ`®w¦s «ö¶s ,¦AÂI¿ï  ªü¬üÁ`®w¦s ªºªí ´N¤ÀÃþ¥X¨Ó

   1.¿z¿ï«áªº¥[Á` ¤£·|
   2.«ö ªü¬üÁ`®w¦s «ö¶s ¦Û°Ê¶]¨ì ¨q¥X ªü¬üÁ`®w¦sªº¸ê®Æªí


  ÁÂÁÂ

¯¬ ¤¤¬î¨Î¸` ´r§Ö

¶i¥X³fªí³æ¤ÀÃþ0917.rar (19.93 KB)

owen

TOP

¦^´_ 32# owen9399
¿ï¾Ü¶i³fªí¤¤ªº¸ê®Æ½d³ò,¥Î«ü¥O[¸ê®Æ]-> [¦Û°Ê¿z¿ï],±N¦U·~°È­û¨Ì¦¸ªº¿z¿ï¸ê®Æ,½Æ»s¨ì¦U·~°È­ûªº¤u§@ªí¸Ì
¦Û¤v¸Õ¸Õ,¥Î¿ý»s¥¨¶°,¬Ý¬Ýµ{¦¡½X,½m²ß¤@¤U,
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 31# GBKEE


    Dear ¤j¤j:
  §Ú¦³·sªº°ÝÃD ­n°Ý
  ¦pªþ¥ó
  
  ±N ¿é¤J¶i³fªíªº¼Æ¾Ú ¤À¥Xµ¹ ªü¬ü ªü¤¯ ¤p¤ý

¨Ã§â¬Û¦P¤½¥q ªº¼Æ¶q Á`­p  (¶i³f ¥X³f Á`­p)  
  ÁÂÁÂ

¶i¥X³fªí³æ¤ÀÃþ0913.rar (12.19 KB)

owen

TOP

¦^´_ 30# owen9399
½Ð¦b¹ï·Ó 29# ¬Ý¬Ý§Ú»¡¤F¤°»ò!
  1. Private Sub CommandButton3_Click() 'UserForm2ªº¬d¸ßµ{¦¡½X
  2. Dim I As Integer, Rng As Range
  3.      With Sh(2)
  4.           .Range("AA1").CurrentRegion = ""  '¥[³o¦æ UserForm2ªí³æ°õ¦æ¤@¦¸«á¥i¤£»Ý³oµ{¦¡½X
  5.          .AutoFilterMode = False
  6.          For I = 1 To UBound(ar)
  7.             If ar(I) <> "" Then .Range("A1").AutoFilter I, ar(I)
  8.          Next
  9.         .Range("A:h").SpecialCells(xlCellTypeVisible).Copy .Range("AA1")
  10. '­ì¥»¬O .Range("A:i").SpecialCells(xlCellTypeVisible).Copy .Range("AA1")
  11.          .AutoFilterMode = False
  12.          Set Rng = .Range("AA1").CurrentRegion.Offset(1)
  13.      End With
  14.   ListBox1.RowSource = Rng.Address
  15. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

¦^´_ 29# GBKEE


    DEAR ¤j¤j:

   §Ú¸Õ¤£¥X¨Ó §R°£¾ã¦C ªº°ÝÃD

   µLªk°õ¦æ
owen

TOP

¦^´_ 28# owen9399
  1. Private Sub CommandButton3_Click() '¬d¸ß
  2.     Dim I As Integer, Rng As Range
  3.      With Sh(2)
  4.          .AutoFilterMode = False
  5.          For I = 1 To UBound(ar)
  6.             If ar(I) <> "" Then .Range("A1").AutoFilter I, ar(I)
  7.          Next
  8.         '.Range("A:i").SpecialCells(xlCellTypeVisible).Copy .Range("AA1") ->'Sh(2)ªº AA1->AIøó
  9.          '*******   .ColumnCount = 8    'ListBox1³]©w8øó     ©Ò¥H§ï¦¨¦p¤U********
  10.         .Range("A:H").SpecialCells(xlCellTypeVisible).Copy .Range("AA1")
  11.          .AutoFilterMode = False
  12.          Set Rng = .Range("AA1").CurrentRegion.Offset(1)   'Sh(2)ªº AA1->AH :AIø󪺸ê®Æ,*****AIøó¶·¥ý§R±¼(¤â°Ê)*****
  13.      End With
  14.   ListBox1.RowSource = Rng.Address
  15. End Sub
  16. Private Sub CommandButton4_Click() '§R°£¾ã¦C
  17.     Dim s, E As Range, I As Integer
  18.     With ListBox1
  19.         If .ListIndex = -1 Then MsgBox "¨S¦³¿ï¾Ü!!": Exit Sub
  20.         s = Application.Index(Application.Transpose(Application.Transpose(.List)), IIf(.ListCount = 1, 0, 1))
  21.         If Join(s, "") = "" Then MsgBox "¨S¦³¸ê®Æ!!": Exit Sub
  22.         s = Application.Index(Application.Transpose(Application.Transpose(.List)), IIf(.ListCount = 1, 0, .ListIndex + 1))
  23.         'S= ListIndexªº¿ï¾Ü.ListIndex ¨º¤@¦Cªº¸ê®Æ,·|¤ñ Resize(, 8)¦h¤@øó.
  24.         '·í
  25.         '->.Range("A:i").SpecialCells(xlCellTypeVisible).Copy .Range("AA1") ->'Sh(2)ªº AA1->AIøó
  26.         '-> For Each E In .Range("A1", .Range("A1").End(xlDown)).Resize(, 8).Rows '¾ã¦C:[ ¦Û°Ê½s¸¹......·~°È­û ]
  27.     End With
  28.     s = Join(s, ",")   'S:  µ²¦X±±¨î¶µªº¦r¦ê [ ¦Û°Ê½s¸¹§Ç¸¹¤½¥q°tÃBµ§¼Æ¼Æ­ÈÀ³¥I¤w¥I(¶i³f¼Æ¶q1+¶i³f¼Æ¶q2)·~°È­û ]
  29.     With Sh(2)
  30.          For Each E In .Range("A1", .Range("A1").End(xlDown)).Resize(, 8).Rows '¾ã¦C:[ ¦Û°Ê½s¸¹......·~°È­û ]
  31.             Debug.Print s
  32.             Debug.Print Join(Application.Transpose(Application.Transpose(E)), ",")
  33.             If s = Join(Application.Transpose(Application.Transpose(E)), ",") Then
  34.                
  35.                 If MsgBox(Join(Application.Transpose(Application.Transpose(E.Value)), ","), vbYesNo, "§R°£¦C") = vbYes Then
  36.                      ³B¸Ì§R°£¾ã¦C E
  37.                 End If
  38.             End If
  39.         Next
  40.     End With
  41.     CommandButton3_Click   '­«·s¬d¸ß
  42. End Sub
½Æ»s¥N½X
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ­n¤ñ½Ö§ó¨ü½Ö¡D¤£­n¤ñ½Ö§ó©È½Ö¡C
ªð¦^¦Cªí ¤W¤@¥DÃD