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

[µo°Ý] ¿ï¶µ«ö¶s

¦^´_ 1# Michelle-W

½Ð¸Õ¬Ý¬Ý¡A¬O¤£¬O§A­nªº¡A¤]¤£ª¾¹D¹ï¤£¹ï¡I
    ¿ï¶µ«ö¶s.rar (92.86 KB)

TOP

¦^´_ 1# Michelle-W


    §Ú¦h¼g¤F¤@¦C¥N½X¡A¥i¯à¤£¬O§A»Ý­nªº¡A¥i¥H§â¥¦§R°£
.Cells(ro, c.Offset(, 2).Column) = 1

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-8-23 14:05 ½s¿è

¦^´_ 5# Michelle-W

ª«¥ó¤Ó¦h¡A¦ûªº°O¾ÐÅé¤]¬Û¹ï¦h¡A·|¼vÅT¨ì¾ãÅ骺°õ¦æ¡A©Ò¥H·|²£¥Í¿ù»~
«Øij§A¥i¥H¥Î¨ä¥L¤èªk¨Ó³B²z¦P¼Ë°ÝÃD¡A¦Ó¤Ö¥ÎOptionButton
¨Ò¦p¡G¨Ï¥Î¤u§@ªí¨Æ¥óWorksheet_SelectionChange¨Ó¨ú¥Nª«¥óOptionButtonªº¨Ï¥Î
¤]·|±o¨ì¬Û¦Pªº®ÄªG

TOP

¦^´_ 7# Michelle-W

¸Õ¸Õ¬Ý

¤£¥u¥u¿ï¨ú¤@­ÓÀx¦s®æ¡A¤]¥i¥H¤@¦¸¿ï¨ú¤@­ÓÄæ¦ì¡A¦ý2­ÓÄæ¦ì¥H¤W´N¤£¦æ¤F

¿ï¶µ«ö¶s(«D¿ï¾Ü«ö¶s).rar (54.71 KB)

TOP

¦^´_ 7# Michelle-W


    ¨Ì¾Ú­ã¤j»¡ªºSelectionChange ®e©öµo¥Í»~IJ

©Ò¥H¤]¥i¥H§ï¥Î¤U¦C¥N½X¡A¦b¸ÓÀx¦s®æ¤¤ÂI2¤U
  1. Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
  2.     co = Cells(1, Columns.Count).End(xlToLeft).Column
  3.         If Target.Column > 2 And Target.Column < 9 And Target.Row > 1 And Cells(Target.Row, 1) <> "" And Cells(1, Target.Column) <> "" Then
  4.             Range(Cells(Target.Row, "C"), Cells(Target.Row, co)) = "" '¥ý²MªÅ­ì¨Óªº"¡´"
  5.             Target.Value = "¡´"
  6.         End If
  7. End Sub
½Æ»s¥N½X

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-8-24 19:52 ½s¿è

¦^´_ 13# Michelle-W

§A­ì¥»¬O¥i¥H§Q¥Î"²Î­p"ªº¥N½X¥h¹ê²{§Aªº°ÝÃDªº¡A§Ú¥u¦h¤F´X¦C¥N½X¦Ó¤w
°Ñ¦Ò¤U­±¥N½X¡G
  1. Sub ²Î­p()
  2.     co = Sheets("²Î­p").Rows(1).SpecialCells(xlCellTypeConstants)
  3.     With Sheets("²Î­p")
  4.         For Each Rng In .Rows(1).SpecialCells(xlCellTypeConstants)
  5.             ro = .Cells(.Rows.Count, Rng.Column).End(xlUp).Row
  6.             If ro > 2 Then .Range(.Cells(3, Rng.Column), .Cells(ro, Rng.Offset(, 2).Column)).Clear
  7.             ro = 0
  8.         Next
  9.     End With
  10.     co = Cells(1, Columns.Count).End(xlToLeft).Column
  11.     ro = Cells(Rows.Count, 1).End(xlUp).Row
  12.     For Each Rng In Range("C2", Cells(ro, co))
  13.         If Rng.Value Like "¡´" Then
  14.             With Sheets("²Î­p")
  15.                 Set c = .Rows(1).Find(Cells(1, Rng.Column))
  16.                  If Not c Is Nothing Then
  17.                     ro = .Cells(Rows.Count, c.Column).End(xlUp).Row + 1
  18.                     .Cells(ro, c.Column) = Cells(Rng.Row, 1)
  19.                     .Cells(ro, c.Offset(, 1).Column) = Cells(Rng.Row, 2)
  20.                     '''.Â^¨ú¤H¦W
  21.                     T = Split(Cells(Rng.Row, 1) & "//", "//")(1)
  22.                     T = Split(T & "/", "/")(0)
  23.                     If T <> "" Then .Cells(ro, c.Offset(, 2).Column) = T
  24.                     ''''¼g¤J·s¼W
  25.                     Set cr = Sheets("·s¼W").Columns(1).Find(Cells(Rng.Row, 1)) '¬d¸ß¦b­þ¤@¦C
  26.                     If Not cr Is Nothing Then
  27.                         Set cc = Sheets("·s¼W").Rows(1).Find(c.Value) '¬d¸ß¦b­þ¤@Äæ
  28.                         If Not cc Is Nothing Then
  29.                             Sheets("·s¼W").Cells(cr.Row, cc.Column) = Rng.Value 'µM«á©ñ¤J"¡´"
  30.                         End If
  31.                     End If
  32.                 End If
  33.                 Set c = Nothing
  34.                 Set sr = Nothing
  35.                 Set cc = Nothing
  36.             End With
  37.         End If
  38.     Next
  39. 'Module1.Â^¨ú¤H¦W<<<³o¸Ì¥i¥H¤£¥Î°Õ¡I
  40. End Sub
½Æ»s¥N½X

TOP

¦^´_ 13# Michelle-W

¥t¥~¡A¦pªG§Ú§âFor Each Rng In Range("C2", Cells(ro, co))³o¦C¥N½X¤S­×§ï¦¨
   For Each Rng In Range("C2", Cells(ro, co)).SpecialCells(xlCellTypeConstants)
¬O¤£¬O¤S·|§ó§Ö¤F¤@¨Ç¡I

TOP

¥»©«³Ì«á¥Ñ lpk187 ©ó 2016-8-24 23:13 ½s¿è

¦^´_ 17# Michelle-W

§Úªº«Øij¡G
1¡C§A¥Ø«eÀ³¸Ó¥ýÁA¸Ñ"²Î­p"³o­Óµ{§Ç¤¤ªº¥N½X¡A¥H¤Î¨ä·N¸q¡C
      ¼g¤U¿ï¾Ü¤u§@ªí¤¤ªº"²Î­p"µ{§Ç¨Ã¤£¤@©w¥u¯à¦b¿ï¾Ü¤u§@ªí¤¤°õ¦æ¡I
      ·íµM§Ú¼gªº¥N½X¥u¯à¦b¨ä¤u§@ªí¤¤°õ¦æ¡A¦ý¤]¥u¶·­×§ï´X­Ó»yªk´N¯à°÷¦b¨ä¥Lªº¤u§@ªí¤¤°õ¦æ¡I
      ¨ä¤¤ªºCells()¡BRange()¡A³o¨Ç³£¥²¶·­n¥¿½Tªº¦a§}µ¹¥¦¡AµM«á´N·íµM¥i¥H¦b¨ä¥Lªº¤u§@ªí¤¤¹ê²{
2¡C¦³¿ìªk¥i¥H¥Ñ²Ä¤@¶µ¶}©l¨Ì§Ç±Æ¦C¶¶§Ç¶Ü~?
      ¥i¥H¸ÑÄÀ"¨Ì§Ç±Æ¦C¶¶§Ç"¶Ü¡H
      ±q­þ¨Ì§Ç¡H¤H­û¡H½s¸¹¡HÁÙ¬O¨Ì¾Ú¥Ø«eªº·s¼W¤u§@ªí¤§±Æ§Ç¡H
¨ä¹ê§A¥»¨­¥N½X²z¸ÑÁÙÆZ¤£¿ùªº¡A¦A·Q¤@¤U¡A§A¤@©w¥i¥Hªº¡I

TOP

¦^´_ 19# Michelle-W


    §Úªº²z¸Ñ¬O³Ì«á°µ±Æ§Çªº°Ê§@¡A¬O³o¼Ë¶Ü¡HÁÙ¬O­n¦A°µ¥t¤@­Óµ{§Ç¡H
  1. Sub ²Î­p()
  2.     co = Sheets("²Î­p").Rows(1).SpecialCells(xlCellTypeConstants)
  3.     With Sheets("²Î­p")
  4.         For Each Rng In .Rows(1).SpecialCells(xlCellTypeConstants)
  5.             ro = .Cells(.Rows.Count, Rng.Column).End(xlUp).Row
  6.             If ro > 2 Then .Range(.Cells(3, Rng.Column), .Cells(ro, Rng.Offset(, 2).Column)).Clear
  7.             ro = 0
  8.         Next
  9.     End With
  10.     co = Cells(1, Columns.Count).End(xlToLeft).Column
  11.     ro = Cells(Rows.Count, 1).End(xlUp).Row
  12.     For Each Rng In Range("C2", Cells(ro, co)).SpecialCells(xlCellTypeConstants)
  13.         If Rng.Value Like "¡´" Then
  14.             With Sheets("²Î­p")
  15.                 Set c = .Rows(1).Find(Cells(1, Rng.Column))
  16.                  If Not c Is Nothing Then
  17.                     ro = .Cells(Rows.Count, c.Column).End(xlUp).Row + 1
  18.                     .Cells(ro, c.Column) = Cells(Rng.Row, 1)
  19.                     .Cells(ro, c.Offset(, 1).Column) = Cells(Rng.Row, 2)
  20.                     '''.Â^¨ú¤H¦W
  21.                     T = Split(Cells(Rng.Row, 1) & "//", "//")(1)
  22.                     T = Split(T & "/", "/")(0)
  23.                     If T <> "" Then .Cells(ro, c.Offset(, 2).Column) = T
  24.                     ''''¼g¤J·s¼W
  25.                     Set cr = Sheets("·s¼W").Columns(1).Find(Cells(Rng.Row, 1)) '¬d¸ß¦b­þ¤@¦C
  26.                     If Not cr Is Nothing Then
  27.                         Set cc = Sheets("·s¼W").Rows(1).Find(c.Value) '¬d¸ß¦b­þ¤@Äæ
  28.                         If Not cc Is Nothing Then
  29.                             Sheets("·s¼W").Cells(cr.Row, cc.Column) = Rng.Value 'µM«á©ñ¤J"¡´"
  30.                         End If
  31.                     End If
  32.                 End If
  33.                 Set c = Nothing
  34.                 Set sr = Nothing
  35.                 Set cc = Nothing
  36.             End With
  37.         End If
  38.     Next
  39.     ''''±Æ§Ç
  40.     Set Rng = Sheets("·s¼W").Range("a1").CurrentRegion
  41.     For i = Rng.Columns.Count To 3 Step -1
  42.          Rng.Sort Key1:=Rng(1, i), Order1:=xlAscending, Header:=xlYes
  43.     Next

  44. 'Module1.Â^¨ú¤H¦W<<<³o¸Ì¥i¥H¤£¥Î°Õ¡I
  45. End Sub
½Æ»s¥N½X

TOP

¦^´_ 23# Michelle-W


    Qestion(¤º§t¸ÑÄÀ).rar (29.85 KB)

TOP

        ÀR«ä¦Û¦b : ¯à·F¤£·F¡A¤£¦p­W·F¹ê·F¡C
ªð¦^¦Cªí ¤W¤@¥DÃD