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

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

¦^´_ 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

¦^´_ 8# ­ã´£³¡ªL
¦^´_ 9# jackyq
¦^´_ 11# lpk187

ÁÂÁ¦U¦ì¤j¤jªº«üÂI¡A¬O¯uªºÆZ®e©ö»~IJªº^^"
¤£¹L³o¯uªº¬O¤@­Ó¦n¤èªk­C!!!
¤S¾Ç¨ì¤@©Û¤F~~ÁÂÁÂ

TOP

¦^´_ 11# lpk187


½Ð°Ýlpk187¤j¤j
¦]¬°¦b§@·~¤¤¡A¤S¹J¨ì·sªº°ÝÃD
¥i§_³Â·Ð±zÀ°¦£¬Ý¤@¤U...
¸Ô²Ó±Ô­z¼g¦bªþ¥ó¤¤

¯uªº«D±`·PÁ±z><
Qestion.rar (26.88 KB)

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

[¿ï¾Ü]¤u§@ªí
Target.Value = "¡´"   ³o¦æ¤U­±,¼W¥[¤U¤@¦æ,¥iÁקKÂùÀ»«áÅܦ¨½s¿èª¬ºA
Cancel = True

TOP

¥»©«³Ì«á¥Ñ Michelle-W ©ó 2016-8-24 22:06 ½s¿è

¦^´_ 15# lpk187


¦pªG¦b·s¼W¤u§@ªí¤¤·s¼W¤@­Ó²Î­p«ö¶s¡A°õ¦æ°_¨Ó´N·|¨S¤ÏÀ³
¥u¯à²Î¤@¦b¿ï¾Üªº¤u§@ªí°õ¦æ¬O¶Ü?
¦³¿ìªk¥i¥H¥Ñ²Ä¤@¶µ¶}©l¨Ì§Ç±Æ¦C¶¶§Ç¶Ü~?

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# lpk187


§Ú¥¿­è¦b¬ã¨s¤F¸Ñ·N«ä~~^^
¶¶§Ç¬O·Q³o¼Ë±Æ¦C

TOP

¦^´_ 20# Michelle-W
¸Õ¸Õ¬Ý
    Ex.zip (19.98 KB)
·P®¦ªº¤ß......(¦b³Â»¶®a±Ú°Q½×°Ï.¥Î¤ß¾Ç²ß·|¦³¶i¨Bªº)
¦ý¸ê·½µL­­,«á´©¦³­­,  ¤@¤Ñ1¤¸ªºÃÙ§U,¤H¤H¦³¯à¤O.

TOP

        ÀR«ä¦Û¦b : ¬°¤H³B¥@­n¤p¤ß²Ó¤ß¡A¦ý¤£­n¡u¤p¤ß²´¡v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD